summaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-04-30 15:31:03 +0800
committerEltrac <hi@guhub.cn>2025-04-30 15:31:03 +0800
commit1d8cb94552f45c35ffc4e2c8f06932e649a39923 (patch)
treea4d09b714464dbbfc4bc89a27a037cd94c4642a5 /layouts
parent3ddd27cb04bac8262c591bd2f271829beddf4a50 (diff)
fix: invalid lookup rule for category term page
by the way, I separated normal term page and category term page
Diffstat (limited to 'layouts')
-rw-r--r--layouts/categories/term.html30
-rw-r--r--layouts/term/term.html7
2 files changed, 30 insertions, 7 deletions
diff --git a/layouts/categories/term.html b/layouts/categories/term.html
new file mode 100644
index 00000000..a1ed5c51
--- /dev/null
+++ b/layouts/categories/term.html
@@ -0,0 +1,30 @@
+{{ 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>
+ </article>
+ {{ partial "footer.html" . }}
+{{ end }}
diff --git a/layouts/term/term.html b/layouts/term/term.html
index 7d17833a..a042d583 100644
--- a/layouts/term/term.html
+++ b/layouts/term/term.html
@@ -3,13 +3,6 @@
{{ 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" }}