diff options
author | Dillon <dillonzq@outlook.com> | 2019-09-29 10:56:11 +0300 |
---|---|---|
committer | Dillon <dillonzq@outlook.com> | 2019-09-29 10:56:11 +0300 |
commit | 69068c7cfc6b347a8299ac64d9de6ff917b63ad1 (patch) | |
tree | b0faf9961425c547f81b3f751dfcfae830d612f9 /layouts/index.html | |
parent | 42d50ae53cd09f0863a6b29639b57af255c9e461 (diff) |
feat: update style / exampleSite files and compatible with Hugo 0.58
Diffstat (limited to 'layouts/index.html')
-rw-r--r-- | layouts/index.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/layouts/index.html b/layouts/index.html index 992ef28..60f4618 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -3,12 +3,12 @@ <div class="post-warp"> {{- partial "home/profile.html" . -}} - {{- $paginator := .Paginate (where (where .Data.Pages "Type" "posts") ".Params.show_in_homepage" "!=" false) }} - {{ range $paginator.Pages -}} + {{ $paginator := .Paginate (where .Site.RegularPages "Type" "posts") -}} + {{ range where $paginator.Pages "Params.show_in_homepage" "!=" false -}} {{ .Render "summary" -}} {{ end -}} - {{ partial "paginator.html" . }} + {{ partial "paginator.html" . -}} </div> {{- else -}} {{ partial "home/profile.html" . -}} |