Benjamin Schwerdtners blog
This is up here: https://faster-than-light-memes.xyz/
Make a blog using org and use babashka as build tool.
Posts are denote org files in posts/, kept apart from my private notes.
The navbar note (posts/*--ftlm-navbar__*.org) decides what gets published.
Links to notes outside posts/ export as plain text.
Translated posts are one file per language, titled <base>_<lang> (e.g. the-maxim-of-evidence_en, the-maxim-of-evidence_de, with #+LANGUAGE: de).
Only one of them needs to be in the navbar. They export to <base>_<lang>.html, and our links point to <base>.html,
which redirects to the language in localStorage, else ?lang=, else English. The language picker on the page sets localStorage.
static/- hand-made pages and images, copied into
public/as is static-private/- gitignored, copied and deployed but not in this repo
Deploying is currently scp into a linode server.
bb tasksfor a list of available commands.
https://github.com/babashka/http-server
Resources:
- shadow-css
- Thomas Heller REPL blog post
- screencast (soon)
Files:
- src/dev/build.clj - shadow-css build
- src/dev/repl.clj - shadow-css file watcher
- src/ftlmemes/gen_pages.clj - script for building html
Bb tasks:
- build-css
- css-watch
- build:
(shell "bb" "src/ftlmemes/gen_pages.clj")
All build steps run with babashka, which is fast! For development, I run a clj repl.
(Currently, the build duration is dominated by the emacs org html gen).
Thanks to System Crafters for getting me started:
https://systemcrafters.net/publishing-websites-with-org-mode/building-the-site/
Thanks to https://github.com/borkdude/quickblog I copied atom feed code.