A sort-of org-mode reader for Haunt, in Emacs-Lisp

Yesterday I wanted to write a blog post written in org-mode, with a few org-babel code blocks, but my site lives mostly in Haunt. Haunt does not have a way of reading org-mode, so I wrote an Emacs-Lisp script that takes a list of org-mode files, and for each computes all org-babel code blocks, exports a Markdown file, and prepends the title, date and tags metadata at the top of the Markdown file using the org-mode #+properties: thingamajig put at the top of the org-mode file.

Nothing very interesting, but here it is. Thought maybe there could be an extension for Haunt with this ability… and I just looked it up. There already is… of course…

3 Likes

I posted about this exact issue recently here which basically amounts to using Jakob’s org-mode-reader and Nix to build the site in a reproducible and self-contained way.

1 Like