diff options
| author | Eltrac <hi@guhub.cn> | 2025-04-29 11:58:13 +0800 |
|---|---|---|
| committer | Eltrac <hi@guhub.cn> | 2025-04-29 11:58:13 +0800 |
| commit | 38bd0d014a36758e4b0dda64cd8fe8e05505a2c9 (patch) | |
| tree | 6dc160746dd33935296464aa26f34f74976ba66b /layouts/_default | |
| parent | abe92d76e20e45a2b2be2a5ae7dd189d4c992ee4 (diff) | |
fix: problematic terms template lookup order
Diffstat (limited to 'layouts/_default')
| -rw-r--r-- | layouts/_default/taxonomy.html | 17 |
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 }} |
