lib/jekyll-toc.rb in jekyll-toc-0.5.0 vs lib/jekyll-toc.rb in jekyll-toc-0.5.1
- old
+ new
@@ -31,10 +31,10 @@
def toc_enabled?
@context.registers[:page]['toc'] == true
end
def toc_config
- @context.registers[:site].config["toc"]
+ @context.registers[:site].config["toc"] || {}
end
end
end
Liquid::Template.register_filter(Jekyll::TableOfContentsFilter)