fix research page
[web.git] / personal / _plugins / categories.rb
index 69375dac3b699f1d73bfca2af598b155a33ee6a6..1da0fe11edfff565202d8d2b13fcf03730b801ce 100644 (file)
@@ -20,6 +20,7 @@ module Jekyll
     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|