修复分页bug
This commit is contained in:
1 parent
2bf1a16008
commit
50ec39d831
4 files changed
+39
-37
No files matched your search
@@ -1,7 +1,7 @@
|
||||
{{ define "main" }}
|
||||
<article>
|
||||
<div class="post-list section">
|
||||
{{ $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