feat(blog): export org-roam notes to firehose and jekyll (SPC n r b / n r j)

Move the firehose exporter here from the firehose repo scripts directory
and rename it to the org-roam- prefix so M-x org-roam-export-blog sits
with the other roam commands. Both commands share one pipeline; each
target contributes frontmatter, post path and image convention:

- org-roam-export-blog: firehose draft (Elixir frontmatter, images to
  app/priv/static/images/blog), bound to SPC n r b
- org-roam-export-jekyll: jekyll draft in _drafts/ (YAML frontmatter,
  tags from #+filetags:, images to attachments/blogposts), bound to
  SPC n r j

Repo roots are defcustoms set home-relative in config.el so one value
works on macOS and Linux; unset or absent roots fail loudly. ERT tests
and the fixture vault live alongside; run with the emacs --batch
command in the test file commentary.

Also split per-machine config: config.el now loads config-mac.el only
on darwin and the new config-linux.el on GNU/Linux, and ignores stale
*.elc files that would otherwise shadow newer sources.
This commit is contained in:
Willem van den Ende
2026-10-29 22:55:12 +00:00
parent e438d8eecd
commit baf389178d
11 changed files with 1008 additions and 1 deletions
@@ -0,0 +1 @@
some attached notes
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="10" height="10"><rect width="10" height="10"/></svg>

After

Width:  |  Height:  |  Size: 100 B

+7
View File
@@ -0,0 +1,7 @@
:PROPERTIES:
:ID: 00000000-0000-0000-0000-000000000002
:ROAM_REFS: https://example.com/jev
:END:
#+title: Jev
Body of Jev.
+6
View File
@@ -0,0 +1,6 @@
:PROPERTIES:
:ID: 00000000-0000-0000-0000-000000000003
:END:
#+title: Laya
Body of Laya.
+27
View File
@@ -0,0 +1,27 @@
:PROPERTIES:
:ID: 00000000-0000-0000-0000-000000000001
:END:
#+title: Will It Blend
#+filetags: :writing:blender:
Will it Blend was a series of videos promoting a blender brand.
# A private comment that must not be exported.
[[attachment:will-it-blend.svg]]
For instance, a day after [[id:00000000-0000-0000-0000-000000000002][Jev]] came out, [[id:00000000-0000-0000-0000-000000000003][Laya]] popped up, and [[id:00000000-0000-0000-0000-000000009999][a missing note]] vanished. TODO source needed (LinkedIn)
[[attachment:attached-notes.txt]]
* I learnt this from Julia
Body text with *bold*.
#+begin_quote
A quoted comment.
#+end_quote
#+begin_src elixir
IO.puts("hi")
#+end_src
+5
View File
@@ -0,0 +1,5 @@
:PROPERTIES:
:ID: 00000000-0000-0000-0000-000000000004
:END:
No title here.