summaryrefslogtreecommitdiff
path: root/layouts/term/term.html
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/term/term.html
parentabe92d76e20e45a2b2be2a5ae7dd189d4c992ee4 (diff)
fix: problematic terms template lookup order
Diffstat (limited to 'layouts/term/term.html')
-rw-r--r--layouts/term/term.html42
1 files changed, 42 insertions, 0 deletions
diff --git a/layouts/term/term.html b/layouts/term/term.html
new file mode 100644
index 00000000..7d17833a
--- /dev/null
+++ b/layouts/term/term.html
@@ -0,0 +1,42 @@
+{{ define "main" }}
+ <article class="posts termlist-page">
+ {{ partial "components/post-page-header.html" . }}
+ {{ partial "components/breadcrumbs.html" . }}
+
+ {{ with .Params.description }}
+ <div class="taxonomy-description markdown-body">
+ {{ . | markdownify }}
+ <hr />
+ </div>
+ {{ end }}
+
+ <div class="term-list">
+ <ul class="term-list-posts">
+ {{ range where .Pages "Section" "ne" "cards" }}
+ <li>
+ <a href="{{ .RelPermalink }}" data-umami-event="Click Post Link from Category Page">
+ {{ .Title }}{{ with .Params.subtitle }}:<span class="posts-subtitle">{{. }}</span>
+ {{ end }}
+ </a>
+ <time>
+ {{ .Date.Format "2006-1-2" }}
+ </time>
+ </li>
+ {{ end }}
+ </ul>
+ <div class="term-list-cards cards-section outbox small">
+ {{ range where .Pages "Section" "eq" "cards" }}
+ <div class="card">
+ <h3>
+ <a href="{{ .RelPermalink }}" data-umami-event="Click Card Link from Category Page">
+ {{ .Title }}
+ </a>
+ </h3>
+ <p>{{ .Summary }}</p>
+ </div>
+ {{ end }}
+ </div>
+ </div>
+ </article>
+ {{ partial "footer.html" . }}
+{{ end }}