aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSpencer Williams <spnw@plexwave.org>2025-07-16 20:03:24 -0400
committerSpencer Williams <spnw@plexwave.org>2025-07-16 20:03:24 -0400
commitfe7f74c879ce00da27c58e96c3bedd9eb340fbf7 (patch)
tree69511ed6e5c0b4b96d8aaa2aa60c908f83a37b7b
parent81e1397f3a4e0ff8daa5e85f88fb69e87d5bd9d9 (diff)
Add slug template var
-rw-r--r--lisp/seam-export.el6
1 files changed, 6 insertions, 0 deletions
diff --git a/lisp/seam-export.el b/lisp/seam-export.el
index 9300783..36971a4 100644
--- a/lisp/seam-export.el
+++ b/lisp/seam-export.el
@@ -181,6 +181,10 @@ interpolate it as-is.
The note's title, in an HTML format suitable for an <h1> tag.
+ `slug'
+
+ The note's slug (that is, its filename without any extension).
+
`backlinks'
A list (<ul>) of notes that link to the given note.
@@ -366,6 +370,8 @@ Gregorian date Sunday, December 31, 1 BC."
("raw-title" .
,(seam-export--org-to-html
(seam-get-title-from-file note-file)))
+ ("slug" .
+ ,(seam-get-slug-from-file-name note-file))
("created" .
,(format-time-string
seam-export--time-format