commit fe124900389991c74df3325b7abea212680f61ec
parent 202d663aa5f4aa6eb8e069156f6128f357051677
Author: Daniel Barlow <dan@telent.net>
Date: Sat, 9 Aug 2025 14:51:40 +0100
put post.path and slug as data- attributes on div
this is to make it easier to find which file to open in emacs
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/site.fnl b/site.fnl
@@ -65,10 +65,12 @@
(fn post-header [post stream]
(stream:write
(string.format
- "<div style=\"clear: both\" class=\"entry\">
+ "<div style=\"clear: both\" class=\"entry\"
+ data-slug=%q data-path=%q>
<h1 class=\"title\">%s<span class=\"permalink\"><a href=%q>#</a></span></h1>
<h2 class=\"date\">%s</h2>
"
+ post.slug post.path
post.title
post.url-path
(os.date "%c" post.date)