Skip to content

About

This is my blog

Resources

Stars

7 stars

Watchers

1 watching

Forks

Repository files navigation

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.

build

bb tasks

for a list of available commands.

deps:

https://github.com/babashka/http-server

gen html with clojure, gen css with shadow-css

Resources:

Files:

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).

Acknowledgments

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.

About

This is my blog

Resources

Stars

7 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages