self.process(@name)
self.read_yaml(File.join(base, '_layouts'), layout)
- self.data['category'] = category
+ 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: '
self.data['title'] = "#{category_title_prefix}#{category.capitalize}"
safe true
def generate(site)
+ return if site.config['blog'].nil?
dir = site.config['blog']['category_dir'] || 'categories'
if site.layouts.key? 'category_index'
site.categories.each_key do |category|