From 534cb4e33e137e153d257662b3983ff7521251b5 Mon Sep 17 00:00:00 2001 From: teldra Date: Mon, 28 Mar 2022 12:56:55 +0200 Subject: [PATCH] small fixes --- themes/buha/layouts/_default/list.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/themes/buha/layouts/_default/list.html b/themes/buha/layouts/_default/list.html index 86416e62..8575e6d1 100644 --- a/themes/buha/layouts/_default/list.html +++ b/themes/buha/layouts/_default/list.html @@ -18,15 +18,15 @@ {{- $posts := where .Site.RegularPages "Type" "in" $s.mainSections }} {{ $meta := "false" }} {{- if eq .Section "events" -}} - {{- $paginator = .Paginate (where site.RegularPages.ByLastmod.Reverse ".Params.when" "ne" nil) -}} + {{- $paginator = .Paginate (where site.RegularPages.ByDate.Reverse ".Params.when" "ne" nil) -}} {{- else if eq .Section "news" }} - {{- $paginator = .Paginate (where (where .Site.RegularPages.ByLastmod.Reverse "Permalink" "!=" .Permalink) "Type" "in" .Site.Params.mainSections) }} + {{- $paginator = .Paginate (where (where .Site.RegularPages.ByDate.Reverse "Permalink" "!=" .Permalink) "Type" "in" .Site.Params.mainSections) }} {{- else if eq .Section "featured" }} {{- $paginator = .Paginate (where $posts "Params.featured" true) -}} {{- else if eq .Section "recurrent" }} {{- $paginator = .Paginate (where .Site.RegularPages "Params.recurrent" true) -}} {{- else -}} - {{- $paginator = .Paginate .RegularPagesRecursive.ByLastmod.Reverse -}} + {{- $paginator = .Paginate .RegularPagesRecursive.ByDate.Reverse -}} {{- end -}} {{ if eq $paginator.PageNumber 1 }} {{ if ne .Content "" }}