summaryrefslogtreecommitdiff
path: root/layouts/_partials/term/term-posts.html
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-08-20 20:19:32 +0800
committerEltrac <hi@guhub.cn>2025-08-20 20:19:32 +0800
commitf312afd11e292b6ccd5cc3767b1be08aaf4f1495 (patch)
tree1c8eed9f82b5534e78d17fe1758a0a04a62e05fd /layouts/_partials/term/term-posts.html
parent50cdc64328381faca8580cd6015f124cbabc36a3 (diff)
feat: add filters to term page
- refactor term page structure with partials - add "reverse order" button - add "hide weekly posts" button - i18n support
Diffstat (limited to 'layouts/_partials/term/term-posts.html')
-rw-r--r--layouts/_partials/term/term-posts.html6
1 files changed, 6 insertions, 0 deletions
diff --git a/layouts/_partials/term/term-posts.html b/layouts/_partials/term/term-posts.html
new file mode 100644
index 00000000..86e1b350
--- /dev/null
+++ b/layouts/_partials/term/term-posts.html
@@ -0,0 +1,6 @@
+<ul id="term-posts"
+ class="animate-duration-100 ps-0 flex flex-col gap-2 list-none leading-relaxed">
+ {{ range where .Pages "Section" "not in" (slice "cards" "library") }}
+ {{ partial "items/post-small" . }}
+ {{ end }}
+</ul>