diff options
author | Y4er <45418382@qq.com> | 2019-10-09 14:01:17 +0300 |
---|---|---|
committer | Y4er <45418382@qq.com> | 2019-10-09 14:01:17 +0300 |
commit | 8f4e29752d7830f40a94253d0213dd358ea0bd2c (patch) | |
tree | 96aff487fe722f3c139d00c6f2941ceb540a0aaa | |
parent | 109f36a34a1b10e1b0705f0e26a8fa9da69b2f57 (diff) |
fix(index.html): .Site.RegularPages
-rw-r--r-- | layouts/index.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/index.html b/layouts/index.html index cc19c44..00c27be 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -5,7 +5,7 @@ <h1 class="page-heading">Articles</h1> {{/* content */}} <ul class="post-list"> - {{ $paginator := .Paginate (where .Data.Pages "Section" "post") }} + {{ $paginator := .Paginate (where .Site.RegularPages "Type" "post") }} <!--读取分页内容--> {{ range $paginator.Pages }} <li> |