2 ms·
>I've been looking for and at solutions for using org-mode as the markup language for a static site generator, and none of the ones I find do what I want. I do
by BeetleB 8y ago
>I've been looking for and at solutions for using org-mode as the markup language for a static site generator, and none of the ones I find do what I want.
I do exactly this via Pelican. I wrote a Pelican plugin to handle org files. Behind the scenes, it merely uses pandoc to convert to rst, and Pelican handles rst quite well.
No major issues so far. Email me if you want the code.
Note that my solution assumes one org file per post. I've been working on an equivalent of ox-hugo[1] for Pelican, and I can share that as well. It's still in alpha (I break compatibility all the time) - but it works well enough that I'm using it as my primary way of writing posts. Having all your posts in one org file is fantastic.
It's still the same concept - it extracts a subtree into an org file, and uses pandoc to convert to rst.
[1] https://ox-hugo.scripter.co/ https://ox-hugo.scripter.co/