From 631505e0c403c9e2e4e5687ee121f0d1bd371b8c Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Thu, 16 Apr 2026 12:49:38 +0200 Subject: 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 --- themes/danix-xyz-hacker/layouts/taxonomy/list.html | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) 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 }} -- cgit v1.2.3