diff options
| author | Jan Tuomi <jan@jantuomi.fi> | 2024-04-06 09:52:17 +0300 |
|---|---|---|
| committer | Jan Tuomi <jan@jantuomi.fi> | 2024-04-06 09:52:17 +0300 |
| commit | 16875af62740fbc217491042dd34bae890c7b3cc (patch) | |
| tree | 78f3a1fd99546e0a20667d45bc24ccc8e58be010 /feed.scm | |
| parent | 72ab6099d2f841d59ed942da61331b83961c1b5c (diff) | |
Improvements, add unfold.js
Diffstat (limited to 'feed.scm')
| -rw-r--r-- | feed.scm | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -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)))) |
