{"action":"created","issue":{"url":"https://api.github.com/repos/fauno/jekyll-pandoc-multiple-formats/issues/16","labels_url":"https://api.github.com/repos/fauno/jekyll-pandoc-multiple-formats/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/fauno/jekyll-pandoc-multiple-formats/issues/16/comments","events_url":"https://api.github.com/repos/fauno/jekyll-pandoc-multiple-formats/issues/16/events","html_url":"https://github.com/fauno/jekyll-pandoc-multiple-formats/pull/16","id":60556441,"number":16,"title":"pass post metadata to pandoc","user":{"login":"bewest","id":394179,"avatar_url":"https://avatars.githubusercontent.com/u/394179?v=3","gravatar_id":"","url":"https://api.github.com/users/bewest","html_url":"https://github.com/bewest","followers_url":"https://api.github.com/users/bewest/followers","following_url":"https://api.github.com/users/bewest/following{/other_user}","gists_url":"https://api.github.com/users/bewest/gists{/gist_id}","starred_url":"https://api.github.com/users/bewest/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bewest/subscriptions","organizations_url":"https://api.github.com/users/bewest/orgs","repos_url":"https://api.github.com/users/bewest/repos","events_url":"https://api.github.com/users/bewest/events{/privacy}","received_events_url":"https://api.github.com/users/bewest/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-10T19:36:43Z","updated_at":"2015-03-10T20:10:07Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/fauno/jekyll-pandoc-multiple-formats/pulls/16","html_url":"https://github.com/fauno/jekyll-pandoc-multiple-formats/pull/16","diff_url":"https://github.com/fauno/jekyll-pandoc-multiple-formats/pull/16.diff","patch_url":"https://github.com/fauno/jekyll-pandoc-multiple-formats/pull/16.patch"},"body":"If someone is using a sophisticated template, this would allow an author to eg mark an article as a draft, allowing the template to take advantage of the metadata from the post.\r\n\r\n\r\nThis passes the metadata in the post to pandoc.  In my use case, I wanted to mark articles/technical reports as drafts, and my template will take advantage of this only if the metadata is passed in.\r\n"},"comment":{"url":"https://api.github.com/repos/fauno/jekyll-pandoc-multiple-formats/issues/comments/78137205","html_url":"https://github.com/fauno/jekyll-pandoc-multiple-formats/pull/16#issuecomment-78137205","issue_url":"https://api.github.com/repos/fauno/jekyll-pandoc-multiple-formats/issues/16","id":78137205,"user":{"login":"bewest","id":394179,"avatar_url":"https://avatars.githubusercontent.com/u/394179?v=3","gravatar_id":"","url":"https://api.github.com/users/bewest","html_url":"https://github.com/bewest","followers_url":"https://api.github.com/users/bewest/followers","following_url":"https://api.github.com/users/bewest/following{/other_user}","gists_url":"https://api.github.com/users/bewest/gists{/gist_id}","starred_url":"https://api.github.com/users/bewest/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bewest/subscriptions","organizations_url":"https://api.github.com/users/bewest/orgs","repos_url":"https://api.github.com/users/bewest/repos","events_url":"https://api.github.com/users/bewest/events{/privacy}","received_events_url":"https://api.github.com/users/bewest/received_events","type":"User","site_admin":false},"created_at":"2015-03-10T20:10:07Z","updated_at":"2015-03-10T20:10:07Z","body":"Ahh, I thought it might need `---`  prefixed, but found it's already included in the output... Figured it must be side-effect from `to_yaml`?  I saw that the tail one did need to be appended, and thought the inconsistency was puzzling.\r\n\r\nYes, I'm using this to set `version: `or `draft: true`, and then conditionally including draftwatermark in a standalone template.  This, and other tricks, like setting documentclass to `letter` all work without explicitly including that extension, per default, I haven't even gotten around to experimenting with all the features yet.\r\n\r\nFWIW, I <3 your work on that en defense... journal, very nice.  I'm hoping to use this to similarly organize technical reports, and formal FDA submissions."}}