4 ms·
Mostly that Emacs only exports to HTML without any context of the content, in a blog you'd like to extract the metadata which org-mode doesn't, it just exports
by sondr3 8y ago
Mostly that Emacs only exports to HTML without any context of the content, in a blog you'd like to extract the metadata which org-mode doesn't, it just exports the whole buffer as HTML. I've been thinking about writing a blogging engine in pure Emacs Lisp, but I'm not sure if I'm that crazy yet :)
- kqr 8y agoIf at some point you want to feel what it's like to be that crazy, there's a chance you'll find that it's actually not that crazy at all! When I created the current iteration of my website[1], I started out just adding some custom export formatting advice to the default ox functions. I couldn't resist add some additional functionality, though, and it takes refreshingly little work: There's one function that iterates through the Org source files and uses the built-in Org functions to query the files for tags, title, date, and so on. The result is memoised in a list, and then various other functions iterate through that list to generate index page, tag listing, and so on. [1]: https://two-wrongs.com/ https://two-wrongs.com/
- sondr3 8y agoNow this is intriguing to me, do you have any pointers for a setup like this?
- zelly 8y agoorg has a static site generator built in. Takes a lot of configuration though: https://orgmode.org/worg/org-tutorials/org-publish-html-tutorial.html https://orgmode.org/worg/org-tutorials/org-publish-html-tuto...
- kaushalmodi 8y agoBeetleB already mentioned ox-hugo above. I happened to stumble across this thread (because Org mode!) and I am also the ox-hugo author. I started working on ox-hugo exactly to have an Org export solution that exports the content + meta-data. If you look at the screenshots on the ox-hugo homepage (linked in BeetleB's comment), you'll see what I mean. Ask me anything about it.