From: Danilo M. Date: Thu, 16 Apr 2026 10:49:38 +0000 (+0200) Subject: feat: add article count badge to taxonomy list items X-Git-Tag: release_22042026-1342~203 X-Git-Url: https://git.danix.xyz/?a=commitdiff_plain;h=631505e0c403c9e2e4e5687ee121f0d1bd371b8c;p=danix.xyz-2.git feat: add article count badge to taxonomy list items Each term card on the tags/categories list page now shows a count badge (top-right) with the number of articles in that term. Co-Authored-By: Claude Haiku 4.5 --- diff --git a/themes/danix-xyz-hacker/layouts/taxonomy/list.html b/themes/danix-xyz-hacker/layouts/taxonomy/list.html index b923aba..b3ab612 100644 --- a/themes/danix-xyz-hacker/layouts/taxonomy/list.html +++ b/themes/danix-xyz-hacker/layouts/taxonomy/list.html @@ -20,12 +20,22 @@ {{ range (sort $pinned "Date" "desc") }} - {{ partial "article-list-item.html" . }} +
+ {{ partial "article-list-item.html" . }} + + {{ .Pages.Len }} + +
{{ end }} {{ range (sort $unpinned "Date" "desc") }} - {{ partial "article-list-item.html" . }} +
+ {{ partial "article-list-item.html" . }} + + {{ .Pages.Len }} + +
{{ end }}