Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/huyb1991/hugo-lamp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHuy Ng <huyb.1991@gmail.com>2019-08-18 15:31:22 +0300
committerGitHub <noreply@github.com>2019-08-18 15:31:22 +0300
commit79e36343f260cc0d16a108c0d9c7949367e37079 (patch)
tree23ab43e496d0c9b80582d1241bceab623fa3fdc6
parent53f45eb6411cc4ee9424f256841f752abc5f461a (diff)
parent67c4c300269284174cc48f77a2db9f4ab297eae0 (diff)
Merge pull request #49 from huyb1991/feature/implement-layout
Update Pages for list
-rw-r--r--layouts/_default/list.html2
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" }}