diff options
author | Huy Ng <huyb.1991@gmail.com> | 2019-08-18 15:31:44 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-18 15:31:44 +0300 |
commit | 27147ebe87335a95ffa1f1889b29467094a7139e (patch) | |
tree | 23ab43e496d0c9b80582d1241bceab623fa3fdc6 | |
parent | 8172a1aacf78f14aeded5299162c05a1d6f0e225 (diff) | |
parent | 79e36343f260cc0d16a108c0d9c7949367e37079 (diff) |
Merge pull request #50 from huyb1991/develop
Develop
-rw-r--r-- | layouts/_default/list.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 7f96a98..defd2b8 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -22,7 +22,7 @@ {{ end }} {{ end }} </header> - {{ $paginator := .Paginate (where .Site.RegularPages "Type" "post") (index .Site.Params "paginate" | default 10) }} + {{ $paginator := .Paginate (where .Pages "Type" "post") (index .Site.Params "paginate" | default 10) }} {{ if ne $paginator.TotalPages 0 }} {{ range $paginator.Pages.ByDate.Reverse }} {{ .Render "summary" }} |