Fix nested sections always displaying last in list

This commit is contained in:
Daniel Perry 2023-11-20 11:15:39 -05:00
parent 65d650fc4d
commit 3440731889

View File

@ -45,7 +45,8 @@
{{- $pages = where $pages "Params.hiddenInHomeList" "!=" "true" }} {{- $pages = where $pages "Params.hiddenInHomeList" "!=" "true" }}
{{- end }} {{- end }}
{{- $paginator := .Paginate $pages }} {{- $sorted := ($pages.ByParam "date").Reverse }}
{{- $paginator := .Paginate $sorted }}
{{- if and .IsHome site.Params.homeInfoParams (eq $paginator.PageNumber 1) }} {{- if and .IsHome site.Params.homeInfoParams (eq $paginator.PageNumber 1) }}
{{- partial "home_info.html" . }} {{- partial "home_info.html" . }}