fix: 按发布日志降序排列
All checks were successful
Build and Upload / Explore-Gitea-Actions (push) Successful in 3m28s
All checks were successful
Build and Upload / Explore-Gitea-Actions (push) Successful in 3m28s
This commit is contained in:
parent
97b32ac2a2
commit
c1bd7b2b5f
@ -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 }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user