hashobject / perun

Programmable static site generator built with Clojure and Boot (HELP NEEDED!)
https://perun.io
Eclipse Public License 1.0
351 stars 38 forks source link

Do not keep yaml frontmatter when parsing for usage with pandoc #240

Closed munen closed 5 years ago

munen commented 5 years ago

When using the task perun/pandoc to convert .org files, we want to continue using yaml-frontmatter for the metadata of posts. However, before passing the post to the pandoc binary itself, we we want to remove that yaml-frontmatter. Otherwise it will be part of the converted output html file.

I haven't found an option to ignore yaml frontmatter within pandoc itself. It ignores it automatically when the formatter is set to markdown. However, it doesn't ignore it for other formatters. Perun already features the option to strip the frontmatter. Yet, it was hard-coded to never use that option.

I'm reverting the hard coding, because: I have no clue when we actually need to keep the front-matter as the metadata seems to be properly used in the setup even with this var to set false.

We are using this for https://200ok.ch already. The PR to enable it for us was:

munen commented 5 years ago

Thx^^