From f5adf4a2737e03488eb91c838607ef3ec59afd30 Mon Sep 17 00:00:00 2001 From: Jimmy Date: Thu, 5 Mar 2026 18:25:04 +0100 Subject: [PATCH] fix: do not display the date of term pages (#1296) --- layouts/_partials/article-list/compact.html | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/layouts/_partials/article-list/compact.html b/layouts/_partials/article-list/compact.html index e41f0c3..ec01bfd 100644 --- a/layouts/_partials/article-list/compact.html +++ b/layouts/_partials/article-list/compact.html @@ -11,14 +11,18 @@ {{- $description = $description | default (T "list.page" (len .Pages)) -}} {{- end -}} {{- if or $description (not .Date.IsZero) -}} + {{/* + If it's a term, the date is extracted from the first page of the collection, which is not very useful. + In that case, we prefer to display the description (if set), or the number of pages within the collection. + */}} {{- end -}}