summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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"))))