about summary refs log tree commit diff
path: root/layouts/_default/terms.html
diff options
context:
space:
mode:
authorNgô Ngọc Đức Huy <huyngo@disroot.org>2023-08-30 17:05:49 +0700
committerNgô Ngọc Đức Huy <huyngo@disroot.org>2023-08-30 17:06:17 +0700
commit601f0a3525d49665b2fb0e74032b332b7d5c9ae1 (patch)
tree76bc3946d745a572fb46c8176905387accdd89ac /layouts/_default/terms.html
parent70704b634dbb8b1ec71423ef88502ba667d91fb1 (diff)
downloadvictor-601f0a3525d49665b2fb0e74032b332b7d5c9ae1.tar.gz
Add support for RSS
Diffstat (limited to 'layouts/_default/terms.html')
-rw-r--r--layouts/_default/terms.html15
1 files changed, 15 insertions, 0 deletions
diff --git a/layouts/_default/terms.html b/layouts/_default/terms.html
new file mode 100644
index 0000000..81f400c
--- /dev/null
+++ b/layouts/_default/terms.html
@@ -0,0 +1,15 @@
+{{ define "main" }}
+    <h1>{{ i18n .Title }}</h1>
+
+    <ul class="terms">
+        {{ range $key, $value := .Data.Terms }}
+        <li>
+            <a href="{{ (print $.Data.Plural "/" (lower $key)) | absLangURL }}">
+            {{ $key }}
+            </a>
+            ({{ len $value }})
+        </li>
+        {{ end }}
+    </ul>
+
+{{ end }}