summaryrefslogtreecommitdiff
path: root/layouts/_default/taxonomy.gmi
diff options
context:
space:
mode:
authorNicholas Johnson <nick@nicholasjohnson.ch>2023-02-24 00:00:00 +0000
committerNicholas Johnson <nick@nicholasjohnson.ch>2023-02-24 00:00:00 +0000
commitdd14f02c0ecab82b6643edd1751d2913533e6a82e89a33286774c0f56950e169 (patch)
tree545cad1a9cf7559269b8773be5d7636e9a333bb38964528b46cf95aa98542bb4 /layouts/_default/taxonomy.gmi
parentdc89efa0d1ba80e8a7c61ddd2d0d4243cc82e52fb2c9104311b4ba5e2af81ff6 (diff)
downloadhugo-theme-journal-dd14f02c0ecab82b6643edd1751d2913533e6a82e89a33286774c0f56950e169.tar.gz
hugo-theme-journal-dd14f02c0ecab82b6643edd1751d2913533e6a82e89a33286774c0f56950e169.zip
Implement taxonomy Atom feeds
Diffstat (limited to 'layouts/_default/taxonomy.gmi')
-rw-r--r--layouts/_default/taxonomy.gmi10
1 files changed, 7 insertions, 3 deletions
diff --git a/layouts/_default/taxonomy.gmi b/layouts/_default/taxonomy.gmi
index c68f674..04c3f73 100644
--- a/layouts/_default/taxonomy.gmi
+++ b/layouts/_default/taxonomy.gmi
@@ -2,8 +2,12 @@
=> / {{ emojify ":link:" | safeHTML }} Return to homepage
-# All {{ .Type }}
- {{- range .Data.Pages }}
+# {{ .Type | humanize }}
+## Feeds
+=> {{ .RelPermalink | replaceRE `(?m)index.gmi$` "atom.xml" | safeHTML }} {{ emojify ":link:" | safeHTML }} Atom Feed
+
+## List
+{{- range .Data.Pages }}
=> {{ .RelPermalink }} {{ emojify ":link:" | safeHTML }} {{ .Title | safeHTML }}
- {{- end }}
+{{- end }}
{{- end }}