mirror of
https://github.com/adityatelange/hugo-PaperMod.git
synced 2023-12-21 10:22:58 +01: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