修复分页bug
This commit is contained in:
1 parent
2bf1a16008
commit
50ec39d831
4 files changed
+39
-37
No files matched your search
@@ -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>
|
||||
|
||||
Reference in new issue
Block a user