summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArun Isaac2022-04-14 17:08:33 +0530
committerArun Isaac2022-04-14 17:08:33 +0530
commit4112a72b11a5cdd58618946ae66ea667280ff5c6 (patch)
treea474890ed94030dcb3bf2b2aa02e0d1bdf6100e8
parent9d2d675bff07b74229e2e67db13642a4df0b4993 (diff)
downloadgn-gemtext-4112a72b11a5cdd58618946ae66ea667280ff5c6.tar.gz
Add separate page for topics.
* topics.skb: New file. * tissue.scm (#:web-files): Add topics.html. * index.skb: Link to topics page.
-rw-r--r--index.skb2
-rw-r--r--tissue.scm2
-rw-r--r--topics.skb14
3 files changed, 18 insertions, 0 deletions
diff --git a/index.skb b/index.skb
index 4cc7dee..c2c057e 100644
--- a/index.skb
+++ b/index.skb
@@ -33,6 +33,8 @@ to it."
(document :title "GeneNetwork issue tracker"
(ref :url "team.html" :text "Team agenda view")
+ " | "
+ (ref :url "topics.html" :text "Topics")
(numbered-issue-listing "~a unanswered issues"
(filter (lambda (issue)
(and (issue-open? issue)
diff --git a/tissue.scm b/tissue.scm
index 712892e..3bcdcd7 100644
--- a/tissue.scm
+++ b/tissue.scm
@@ -43,6 +43,8 @@
(skribe-exporter "index.skb"))
(file "team.html"
(skribe-exporter "team.skb"))
+ (file "topics.html"
+ (skribe-exporter "topics.skb"))
(append (tag-pages)
(filter-map (lambda (filename)
(and (string-suffix? ".gmi" filename)
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"))))