Class: Jekyll::IconGenerator

Inherits:
Generator
  • Object
show all
Defined in:
lib/irontask/public/components/font-awesome/src/_plugins/icon_page_generator.rb

Instance Method Summary collapse

Instance Method Details

#generate(site) ⇒ Object



38
39
40
41
42
# File 'lib/irontask/public/components/font-awesome/src/_plugins/icon_page_generator.rb', line 38

def generate(site)
  site.icons.each do |icon|
    site.pages << IconPage.new(site, site.source, site.config['icon_destination'], icon)
  end
end

#trueObject

Iterate over every described icon in a YAML file and create a page for it



36
# File 'lib/irontask/public/components/font-awesome/src/_plugins/icon_page_generator.rb', line 36

safe true