fix research page
[web.git] / ralf / _plugins / categories.rb
index 69375da..1da0fe1 100644 (file)
@@ -20,6 +20,7 @@ module Jekyll
     safe true
 
     def generate(site)
     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|
       dir = site.config['blog']['category_dir'] || 'categories'
       if site.layouts.key? 'category_index'
         site.categories.each_key do |category|