Ox-Roam-Backlinks
Published: October 31, 2021Credit to Ben Mezger & Jethro Kuan for this, just another example of the beautiful compositionality of Emacs. With the right templates it’s easy to set up a quick and easy notes-to-blog pipeline.
1 Org-Roam Capture Template
With a few fields pre-filled for Ox-Hugo we grease the wheels.
export_file_name
and date
are relevant. To keep links in sync
internal to Roam and the site the file name and export_file_name
should have the same scheme.1
|
|
2 Org-Hugo Dir-Locals
A few local variables the distinguish Org-Roam notes will keep the site neater.
|
|
3 Hugo Backlinks
Ben Mezger gives the method here for representing the backlinks in
Hugo. I put it in my ~/Public/blog/layout/roam/
so it applies to the
right section of posts.
-
Perhaps there’s a DRY way to do this. ↩︎