Skip to content

Commit

Permalink
trigger pre & post render hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
fauno committed Dec 5, 2017
1 parent a677d0a commit ac11900
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/jekyll-pandoc-multiple-formats/generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,13 @@ def generate(site)

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

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

Jekyll::Hooks.trigger :posts, :post_render, post, nil

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

0 comments on commit ac11900

Please sign in to comment.