修复分页bug

This commit is contained in:
小赵同学 committed 2024-07-23 20:17:02 +08:00
1 parent 2bf1a16008
commit 50ec39d831
4 files changed
+39 -37

No files matched your search

+1 -1
View File
@@ -4,7 +4,7 @@
<div class="recent-posts section">
<h2 class="section-header">随笔<i class="ri-quill-pen-line"></i></h2>
<div class="posts">
{{ $paginator := .Paginate (where .Site.RegularPages "Type" "post") }}
{{ $paginator := .Paginate (where (where .Site.RegularPages "Type" "post") "Params.status" "ne" "hidden") }}
{{ range $paginator.Pages }}
<div class="post">
<div class="time">{{ .Date.Format "January 2, 2006" }}</div>