diff options
| author | Eltrac <hi@guhub.cn> | 2025-08-20 20:19:32 +0800 |
|---|---|---|
| committer | Eltrac <hi@guhub.cn> | 2025-08-20 20:19:32 +0800 |
| commit | 0f09e731e753a03f0b002d5a64a48a8e233207e7 (patch) | |
| tree | 1c8eed9f82b5534e78d17fe1758a0a04a62e05fd /layouts/_partials/term/term-posts.html | |
| parent | c0fa9df648ebfb5b69d610bca5ff1261c8164235 (diff) | |
feat: add filters to term page
- refactor term page structure with partials
- add "reverse order" button
- add "hide weekly posts" button
- i18n support
Former-commit-id: f312afd11e292b6ccd5cc3767b1be08aaf4f1495
Diffstat (limited to 'layouts/_partials/term/term-posts.html')
| -rw-r--r-- | layouts/_partials/term/term-posts.html | 6 |
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> |
