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 "" }}