diff options
Diffstat (limited to 'topics.skb')
-rw-r--r-- | topics.skb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/topics.skb b/topics.skb new file mode 100644 index 0000000..cd3c053 --- /dev/null +++ b/topics.skb @@ -0,0 +1,14 @@ +(use-modules (rnrs hashtables) + (tissue tissue)) + +;; Steal file-details from (tissue issue) until there is a public +;; interface for it. +(define file-details + (@@ (tissue issue) file-details)) + +(document :title "Topics" + (itemize (filter-map (lambda (file) + (let ((file-details (file-details file))) + (item (ref :url (replace-extension file "html") + :text (hashtable-ref file-details 'title file))))) + (gemtext-files-in-directory "topics")))) |