From 7f379cd454b42342a784192d8f7f34c3a0579acc Mon Sep 17 00:00:00 2001 From: Gabriele Musco Date: Sun, 3 Jan 2021 14:06:44 +0100 Subject: [PATCH] fix bug showing list section and title names even if one is the plural of the other --- layouts/_default/list.html | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 4b050f9..531445d 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -2,12 +2,11 @@

{{ $title := .Title }} {{ $section := .Section | humanize }} - {{ if and (ne $section $title) (ne $section "Tags") }} + {{ if and (ne $section $title) (ne $section "Tags") (ne $title (printf "%ss" $section)) }} {{ $section }}: {{ end }} {{ if and (eq $section "Tags") (ne $section $title) }}Tag: #{{ end }}{{ $title }}

-