Skip to content

Commit

Permalink
now it's a method
Browse files Browse the repository at this point in the history
  • Loading branch information
fauno committed Jan 23, 2018
1 parent c2cdba1 commit 73f7e50
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions lib/jekyll-pandoc-multiple-formats/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ def binder?
@config['binder']
end

def full_file?
@config['full_file']
end

# TODO magic
def outputs
@config['outputs']
Expand Down
2 changes: 1 addition & 1 deletion lib/jekyll-pandoc-multiple-formats/generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def generate(site)
@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.
#
Expand Down

0 comments on commit 73f7e50

Please sign in to comment.