fix: 按发布日志降序排列
All checks were successful
Build and Upload / Explore-Gitea-Actions (push) Successful in 3m28s

This commit is contained in:
moonlightwatch 2025-04-22 16:57:28 +08:00
parent 97b32ac2a2
commit c1bd7b2b5f

View File

@ -2,7 +2,8 @@
{{ $pages := where .Site.RegularPages "Type" "in" .Site.Params.mainSections }}
{{ $notHidden := where .Site.RegularPages "Params.hidden" "!=" true }}
{{ $filtered := ($pages | intersect $notHidden) }}
{{ $pag := .Paginate ($filtered) }}
{{ $sorted := $filtered.ByPublishDate.Reverse }}
{{ $pag := .Paginate ($sorted) }}
<section class="article-list">
{{ range $index, $element := $pag.Pages }}