From 99e9038705daf65926cd991b576a3629071a6b31 Mon Sep 17 00:00:00 2001 From: Jose Galarza Date: Mon, 7 Mar 2022 13:41:58 +0000 Subject: [PATCH] Use the group by year var in the term partial --- layouts/_default/term.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/layouts/_default/term.html b/layouts/_default/term.html index 8edcdf2c..34ad2342 100644 --- a/layouts/_default/term.html +++ b/layouts/_default/term.html @@ -14,8 +14,10 @@ {{ end }}
{{ range (.Paginate (.Pages.GroupByDate "2006")).PageGroups }} -

{{ .Key }}

-
+ {{ if $.Params.groupByYear | default ($.Site.Params.list.groupByYear | default true) }} +

{{ .Key }}

+
+ {{ end }} {{ range .Pages }} {{ partial "article-link.html" . }} {{ end }}