diff options
author | Mario Vavti <mario@mariovavti.com> | 2018-02-26 11:05:48 +0100 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2018-02-26 11:05:48 +0100 |
commit | a5f843ba9ba3dd3ce9ad22a89d57dfcb5fa46586 (patch) | |
tree | c0ec56a71c8ad04100d4914d14498b154a52e5dd /library/font_awesome/src/_plugins/icon_page_generator.rb | |
parent | 4781a8cb6bbd6d0e379b404c455844ddbc7e2812 (diff) | |
download | volse-hubzilla-a5f843ba9ba3dd3ce9ad22a89d57dfcb5fa46586.tar.gz volse-hubzilla-a5f843ba9ba3dd3ce9ad22a89d57dfcb5fa46586.tar.bz2 volse-hubzilla-a5f843ba9ba3dd3ce9ad22a89d57dfcb5fa46586.zip |
switch to fork-awesome
Diffstat (limited to 'library/font_awesome/src/_plugins/icon_page_generator.rb')
-rw-r--r-- | library/font_awesome/src/_plugins/icon_page_generator.rb | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/library/font_awesome/src/_plugins/icon_page_generator.rb b/library/font_awesome/src/_plugins/icon_page_generator.rb deleted file mode 100644 index 32b7cd428..000000000 --- a/library/font_awesome/src/_plugins/icon_page_generator.rb +++ /dev/null @@ -1,45 +0,0 @@ -## -# Create individual pages for each icon in the FontAwesome set - -require 'yaml' - -module Jekyll - - class IconPage < Page - - ## - # Take a single icon and render a page for it. - - def initialize(site, base, dir, icon) - @site = site - @base = base - @dir = dir - @name = "#{icon.id}.html" - @icon = icon - - self.process(@name) - - self.read_yaml(File.join(base, site.config['layouts']), site.config['icon_layout']) - - self.data['icon'] = icon - self.data['title'] = "fa-#{icon.id}: " + self.data['title_suffix'] - end - - end - - class IconGenerator < Generator - - ## - # Iterate over every described icon in a YAML file and create a page for it - - safe true - - def generate(site) - site.icons.each do |icon| - site.pages << IconPage.new(site, site.source, site.config['icon_destination'], icon) - end - end - - end - -end |