Skip to content
Snippets Groups Projects
Commit 2bde700f authored by fauno's avatar fauno
Browse files

Merge pull request #16 from bewest/bewest/post-metadata

pass post metadata to pandoc
parents e19b2e73 be09560d
No related branches found
No related tags found
No related merge requests found
...@@ -49,8 +49,7 @@ class PandocGenerator < Generator ...@@ -49,8 +49,7 @@ class PandocGenerator < Generator
puts pandoc puts pandoc
# Make the markdown header so pandoc receives metadata # Make the markdown header so pandoc receives metadata
content = "% #{post.data['title']}\n" content = "#{post.data.to_yaml}\n---\n"
content << "% #{post.data['author']}\n"
content << post.content content << post.content
# Do the stuff # Do the stuff
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment