Icon pages should generate. Silly me.

This commit is contained in:
Dave Gandy 2016-01-10 21:39:43 -05:00
parent 898111fd33
commit 3cef6cb7ea

View File

@ -1,45 +1,45 @@
# ## ##
# # Create individual pages for each icon in the FontAwesome set # Create individual pages for each icon in the FontAwesome set
#
# require 'yaml' require 'yaml'
#
# module Jekyll module Jekyll
#
# class IconPage < Page class IconPage < Page
#
# ## ##
# # Take a single icon and render a page for it. # Take a single icon and render a page for it.
#
# def initialize(site, base, dir, icon) def initialize(site, base, dir, icon)
# @site = site @site = site
# @base = base @base = base
# @dir = dir @dir = dir
# @name = "#{icon.id}.html" @name = "#{icon.id}.html"
# @icon = icon @icon = icon
#
# self.process(@name) self.process(@name)
#
# self.read_yaml(File.join(base, site.config['layouts']), site.config['icon_layout']) self.read_yaml(File.join(base, site.config['layouts']), site.config['icon_layout'])
#
# self.data['icon'] = icon self.data['icon'] = icon
# self.data['title'] = "fa-#{icon.id}: " + self.data['title_suffix'] self.data['title'] = "fa-#{icon.id}: " + self.data['title_suffix']
# end end
#
# end end
#
# class IconGenerator < Generator class IconGenerator < Generator
#
# ## ##
# # Iterate over every described icon in a YAML file and create a page for it # Iterate over every described icon in a YAML file and create a page for it
#
# safe true safe true
#
# def generate(site) def generate(site)
# site.icons.each do |icon| site.icons.each do |icon|
# site.pages << IconPage.new(site, site.source, site.config['icon_destination'], icon) site.pages << IconPage.new(site, site.source, site.config['icon_destination'], icon)
# end end
# end end
#
# end end
#
# end end