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:
@@ -322,6 +322,13 @@
|
||||
(require 'qwan-blog)
|
||||
(require 'qwan-refactor)
|
||||
(require 'qwan-markdown-dnd)
|
||||
(require 'org-roam-export-blog)
|
||||
|
||||
;; Blog export targets. Both paths are home-relative, so one setting works
|
||||
;; on macOS (/Users/willem) and Linux (/home/willem). Override per machine
|
||||
;; in config-mac.el / config-linux.el if a checkout lives elsewhere.
|
||||
(setq org-roam-export-blog-firehose-root "~/dev/elixir/firehose"
|
||||
org-roam-export-jekyll-root "~/MyDocuments/qwan/sites/qwaneu.github.io")
|
||||
|
||||
;; Elfeed RSS configuration
|
||||
;; Feeds are defined in org-directory (same as org-roam-directory)
|
||||
@@ -407,7 +414,10 @@
|
||||
;; :custom pi-coding-agent-executable '("devcontainer" "exec" "pi"))
|
||||
)
|
||||
;; Load machine-specific configuration (gptel backends, etc.)
|
||||
(load! "config-mac.el" doom-user-dir t)
|
||||
;; Each file only applies on its own platform.
|
||||
(pcase system-type
|
||||
('darwin (load! "config-mac.el" doom-user-dir t))
|
||||
('gnu/linux (load! "config-linux.el" doom-user-dir t)))
|
||||
|
||||
|
||||
;; org-roam v1 port to v2, insert node without opening buffer
|
||||
@@ -418,6 +428,12 @@
|
||||
"n r I"
|
||||
#'org-roam-node-insert-immediate)
|
||||
|
||||
;; blog export from org-roam notes (SPC n r = roam commands)
|
||||
(map!
|
||||
:leader
|
||||
:desc "Export note as firehose blog post" "n r b" #'org-roam-export-blog
|
||||
:desc "Export note as jekyll draft" "n r j" #'org-roam-export-jekyll)
|
||||
|
||||
(after! flycheck
|
||||
(setq flycheck-haskell-ghc-executable "cabal")
|
||||
(setq flycheck-haskell-runghc-executable "cabal"))
|
||||
|
||||
Reference in New Issue
Block a user