feat: update style / exampleSite files and compatible with Hugo 0.58

This commit is contained in:
Dillon
2019-09-29 15:56:11 +08:00
parent 42d50ae53c
commit 69068c7cfc
10 changed files with 951 additions and 39 deletions

View File

@@ -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" . -}}