X-Git-Url: https://git.ralfj.de/web.git/blobdiff_plain/6680e4573ec412349c1203d35190831d5219e4f9..85fa0bd3e50118fccb29cd154d93748eb0d893b6:/personal/_plugins/categories.rb?ds=sidebyside diff --git a/personal/_plugins/categories.rb b/personal/_plugins/categories.rb index 69375da..1da0fe1 100644 --- a/personal/_plugins/categories.rb +++ b/personal/_plugins/categories.rb @@ -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|