diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 9c5bc54d..9665ee9c 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -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" . }}