diff --git a/lib/jekyll-pandoc-multiple-formats/config.rb b/lib/jekyll-pandoc-multiple-formats/config.rb index 9ea839bc71f3354c747b4a92405d9bce28a45f8e..3030621cf55eab9ce6fe9b92044a2546bab734e5 100644 --- a/lib/jekyll-pandoc-multiple-formats/config.rb +++ b/lib/jekyll-pandoc-multiple-formats/config.rb @@ -34,6 +34,10 @@ module JekyllPandocMultipleFormats @config['binder'] end + def full_file? + @config['full_file'] + end + # TODO magic def outputs @config['outputs'] diff --git a/lib/jekyll-pandoc-multiple-formats/generator.rb b/lib/jekyll-pandoc-multiple-formats/generator.rb index 24ba40cb27798f4cebaddf6893503aa6f73c3515..27ee759bebb15e2f400136d210363e4861d5ed10 100644 --- a/lib/jekyll-pandoc-multiple-formats/generator.rb +++ b/lib/jekyll-pandoc-multiple-formats/generator.rb @@ -50,7 +50,7 @@ class PandocGenerator < Generator @pandoc_files << pandoc_file end - if @config['full_file'] + if @config.full_file? # For parts to make sense, we order articles by date and then by # category, so each category is ordered by date. #