summaryrefslogtreecommitdiff
path: root/layouts/_default
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-04-29 11:58:13 +0800
committerEltrac <hi@guhub.cn>2025-04-29 11:58:13 +0800
commit38bd0d014a36758e4b0dda64cd8fe8e05505a2c9 (patch)
tree6dc160746dd33935296464aa26f34f74976ba66b /layouts/_default
parentabe92d76e20e45a2b2be2a5ae7dd189d4c992ee4 (diff)
fix: problematic terms template lookup order
Diffstat (limited to 'layouts/_default')
-rw-r--r--layouts/_default/taxonomy.html17
1 files changed, 17 insertions, 0 deletions
diff --git a/layouts/_default/taxonomy.html b/layouts/_default/taxonomy.html
new file mode 100644
index 00000000..025a63d7
--- /dev/null
+++ b/layouts/_default/taxonomy.html
@@ -0,0 +1,17 @@
+{{ define "main" }}
+<article class="taxonomy">
+ {{ partial "header.html" . }}
+ {{ partial "components/postnav.html" . }}
+
+ <!-- Display Tags -->
+ <section class="taxonomy-tags">
+ {{ range sort .Site.Taxonomies.tags "Count" "desc" }}
+ <a href="{{ .Page.RelPermalink }}" class="taxonomy-tags-item">
+ <span class="tag-name">#{{ .Page.LinkTitle }}</span>
+ <span class="tag-count">{{ .Count }}</span>
+ </a>
+ {{ end }}
+ </section>
+</article>
+{{ partial "footer.html" . }}
+{{ end }}