summaryrefslogtreecommitdiff
path: root/layouts
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
commitf02f6b0db09299666d78ae21243b7e919a275edb95458f33404c9eaff3aa92be (patch)
treeb4c6db2fa214c21bf35c8e415e9de70315d88dcf860fe258f1cc0baf3c3e2cee /layouts
parented6662cdd570b1af333a4107c4035ab78fd4d355132c83818db7e3ea47edbde0 (diff)
downloadhugo-theme-journal-f02f6b0db09299666d78ae21243b7e919a275edb95458f33404c9eaff3aa92be.tar.gz
hugo-theme-journal-f02f6b0db09299666d78ae21243b7e919a275edb95458f33404c9eaff3aa92be.zip
Implement taxonomies
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/taxonomy.gmi6
-rw-r--r--layouts/_default/taxonomy.html10
2 files changed, 16 insertions, 0 deletions
diff --git a/layouts/_default/taxonomy.gmi b/layouts/_default/taxonomy.gmi
new file mode 100644
index 0000000..f0a4b63
--- /dev/null
+++ b/layouts/_default/taxonomy.gmi
@@ -0,0 +1,6 @@
+{{ define "main" -}}
+# All {{ .Type }}
+ {{- range .Data.Pages }}
+=> {{ .RelPermalink }} {{ emojify ":link:" }} {{ .Title }}
+ {{- end }}
+{{- end }}
diff --git a/layouts/_default/taxonomy.html b/layouts/_default/taxonomy.html
new file mode 100644
index 0000000..28147b9
--- /dev/null
+++ b/layouts/_default/taxonomy.html
@@ -0,0 +1,10 @@
+{{ define "main" -}}
+<main>
+ <h1>All {{ .Type }}</h1>
+ <ul class="list">
+ {{- range .Data.Pages }}
+ <li class="list__item"><a class="link" href="{{ .RelPermalink }}" rel="noreferrer">{{ emojify ":link:" }} {{ .Title }}</a></li>
+ {{- end }}
+ </ul>
+</main>
+{{- end }}