mirror of
https://github.com/adityatelange/hugo-PaperMod.git
synced 2024-12-24 05:55:53 -05:00
Fix nested sections always displaying last in list
This commit is contained in:
parent
65d650fc4d
commit
3440731889
@ -45,7 +45,8 @@
|
||||
{{- $pages = where $pages "Params.hiddenInHomeList" "!=" "true" }}
|
||||
{{- end }}
|
||||
|
||||
{{- $paginator := .Paginate $pages }}
|
||||
{{- $sorted := ($pages.ByParam "date").Reverse }}
|
||||
{{- $paginator := .Paginate $sorted }}
|
||||
|
||||
{{- if and .IsHome site.Params.homeInfoParams (eq $paginator.PageNumber 1) }}
|
||||
{{- partial "home_info.html" . }}
|
||||
|
Loading…
Reference in New Issue
Block a user