Emacs, Org-mode, Gleam, and Nix: One Blogger's Absurdly Overbuilt Static Site
Blogging with Gleam, Org-Mode and Pandoc
A developer describes a static blog pipeline built around Emacs and Org-mode, with Pandoc converting Org to Markdown, Gleam and Blogatto generating HTML, Lustre handling templates, and Nix pinning the environment. The author argues Org-mode beats Markdown because it is a coherent, interactive document model, and defends keeping everything inside Emacs as "good bloat."
Emacs, when taken from a UNIX philosophy perspective, is pure bloat. Indeed, Emacs does not follow UNIX's "do one thing well". One can even argue that is is actually good, the lack of unified environment ends up causing userland BLOAT anyway. By this very definition, Emacs would be good bloat.
- throwaway81523
I don't understand why gleam and pandoc are in there. Org-mode can already generate HTML. A little bit of Emacs Lisp turns it into a blogging engine.
https://ahungry.com/blog/2013-04-01-blogging-with-org-mode.h...
- writtenone
I prefer to write words not code. I use WordPress because it hides all the complexity and lets me just write instead of messing with Markdown (or an entire separate system), CI pipelines, custom markup hacks for page features, Emacs cruft, etc..
Yeah WordPress is a security nightmare, but Ghost's editor sucks and there's no viable open-source alternatives with modern security and features.
- malkosta
mine has no org-mode...which is fine...I like markdown:
find . -name '*.md' -type f -exec sh -c '
for file do
out="docs/${file#./}"
out="${out%.md}.html"
mkdir -p "$(dirname "$out")"
pandoc --quiet --template template.html "$file" -o "$out"
done
' sh {} +