summaryrefslogtreecommitdiffstats
path: root/feed.scm
diff options
context:
space:
mode:
authorJan Tuomi <jan@jantuomi.fi>2024-04-06 09:52:17 +0300
committerJan Tuomi <jan@jantuomi.fi>2024-04-06 09:52:17 +0300
commit16875af62740fbc217491042dd34bae890c7b3cc (patch)
tree78f3a1fd99546e0a20667d45bc24ccc8e58be010 /feed.scm
parent72ab6099d2f841d59ed942da61331b83961c1b5c (diff)
Improvements, add unfold.js
Diffstat (limited to 'feed.scm')
-rw-r--r--feed.scm9
1 files changed, 6 insertions, 3 deletions
diff --git a/feed.scm b/feed.scm
index 4add4f8..c90bd11 100644
--- a/feed.scm
+++ b/feed.scm
@@ -86,16 +86,19 @@
(define link (pipe path
(@ replace (format "^~A\\/?" src-dir) "/")
(@ replace "\\.md$" "")))
- (format "* [~A (~A) [~A]](~A)" title date kind link))
+ (format "<li class=\"archive-entry\"><a href=\"~A\">~A</a><small><span>[~A]</span> (~A)</small></li>"
+ link title kind date))
(define index-lis (map to-li fm-sorted))
(define out-md (string-append "---\n"
- "title: Archive\n"
+ "title: archive – jan's garden\n"
"hide-body-title: defined\n"
"---\n"
"# Archive\n\n"
"Follow via [RSS](/feed.xml) ([Huh?](https://aboutfeeds.com/))\n\n"
- (string-join index-lis "\n")))
+ (string-append "<ul class=\"archive-list\">"
+ (string-join index-lis "\n")
+ "</ul>")))
(with-output-to-file (make-pathname archive-dir "index.md")
(λ () (print out-md))))