self.read_yaml(File.join(base, '_layouts'), layout)
self.data['category'] = category # this tells the site template to add a link to the RSS feed
- category_title_prefix = site.config['blog']['category_title_prefix'] || 'Category: '
+ category_title_prefix = site.config['blog']['title'] + ": "
self.data['title'] = "#{category_title_prefix}#{category.capitalize}"
end
end
end
# Adds some extra filters used during the category creation process.
- module Filters
+ module CategoryFilter
# Outputs a list of categories as comma-separated <a> links. This is used
# to output the category list for each post on a category page.
end
end
end
+
+Liquid::Template.register_filter(Jekyll::CategoryFilter)