From 30afa1a9c0e3e568ffef051efa31fe93b19de7cd Mon Sep 17 00:00:00 2001 From: gtitov Date: Fri, 14 Oct 2022 00:20:34 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=A9=B9Fix=20jpanther/congo#313=20ordering?= =?UTF-8?q?=20content?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- layouts/_default/list.html | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 6b3e5a97..5d503e57 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -26,14 +26,18 @@ {{ if gt .Pages 0 }}
- {{ range (.Paginate (.Pages.GroupByDate "2006")).PageGroups }} - {{ if $.Params.groupByYear | default ($.Site.Params.list.groupByYear | default true) }} + {{ if $.Params.groupByYear | default ($.Site.Params.list.groupByYear | default true) }} + {{ range (.Paginate (.Pages.GroupByDate "2006")).PageGroups }}

{{ .Key }}


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