From 73f7e504f65c30dd43337749b1c9ff82c1458ef7 Mon Sep 17 00:00:00 2001 From: fauno <fauno@endefensadelsl.org> Date: Tue, 23 Jan 2018 15:33:52 -0300 Subject: [PATCH] now it's a method --- lib/jekyll-pandoc-multiple-formats/config.rb | 4 ++++ lib/jekyll-pandoc-multiple-formats/generator.rb | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/jekyll-pandoc-multiple-formats/config.rb b/lib/jekyll-pandoc-multiple-formats/config.rb index 9ea839b..3030621 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 24ba40c..27ee759 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. # -- GitLab