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:44 +0300
committerGitHub <noreply@github.com>2019-08-18 15:31:44 +0300
commit27147ebe87335a95ffa1f1889b29467094a7139e (patch)
tree23ab43e496d0c9b80582d1241bceab623fa3fdc6
parent8172a1aacf78f14aeded5299162c05a1d6f0e225 (diff)
parent79e36343f260cc0d16a108c0d9c7949367e37079 (diff)
Merge pull request #50 from huyb1991/develop
Develop
-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" }}