fix research page
authorRalf Jung <post@ralfj.de>
Mon, 12 Oct 2015 12:11:01 +0000 (14:11 +0200)
committerRalf Jung <post@ralfj.de>
Mon, 12 Oct 2015 12:11:01 +0000 (14:11 +0200)
ralf/_plugins/categories.rb
research/_config.yml

index 69375da..1da0fe1 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|
index 868f8be..18ca2bc 100644 (file)
@@ -7,7 +7,7 @@ defaults:
   - scope:
         path: "" # all files in the project
     values:
-        layout: "default"
+        layout: "page"
 
 # Build settings
 markdown: kramdown