Skip to content

Commit

Permalink
pass output format to trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
fauno committed Dec 6, 2017
1 parent 58e5cf2 commit 8c525e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/jekyll-pandoc-multiple-formats/generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@ def generate(site)

@config.outputs.each_pair do |output, _|
@site.posts.docs.each do |post|
Jekyll::Hooks.trigger :posts, :pre_render, post, nil
Jekyll::Hooks.trigger :posts, :pre_render, post, { format: output }

pandoc_file = PandocFile.new(@site, output, post)
next unless pandoc_file.write

Jekyll::Hooks.trigger :posts, :post_render, post, nil
Jekyll::Hooks.trigger :posts, :post_render, post, { format: output }

@site.keep_files << pandoc_file.relative_path
@pandoc_files << pandoc_file
Expand Down

0 comments on commit 8c525e4

Please sign in to comment.