diff options
author | Huy Ng <huyb.1991@gmail.com> | 2019-08-18 15:31:22 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-18 15:31:22 +0300 |
commit | 79e36343f260cc0d16a108c0d9c7949367e37079 (patch) | |
tree | 23ab43e496d0c9b80582d1241bceab623fa3fdc6 | |
parent | 53f45eb6411cc4ee9424f256841f752abc5f461a (diff) | |
parent | 67c4c300269284174cc48f77a2db9f4ab297eae0 (diff) |
Merge pull request #49 from huyb1991/feature/implement-layout
Update Pages for list
-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" }} |