fix(index.html): .Site.RegularPages

This closes #188, closes #192
This commit is contained in:
olOwOlo 2019-09-08 21:21:36 +08:00
parent fd1b8d7bc8
commit 5a3e5599d2
No known key found for this signature in database
GPG key ID: 456394B6E7A15EA6

View file

@ -1,7 +1,7 @@
{{- define "content" -}}
<section id="posts" class="posts">
{{/* (index .Site.Paginate) */}}
{{- $paginator := .Paginate (where (where .Data.Pages "Type" "post") ".Params.hiddenfromhomepage" "!=" true) }}
{{- $paginator := .Paginate (where (where .Site.RegularPages "Type" "post") ".Params.hiddenfromhomepage" "!=" true) }}
{{- range $paginator.Pages -}}
{{ .Render "summary" }}
{{ end -}}
@ -21,4 +21,4 @@
</a>
{{- end }}
</nav>
{{- end -}}
{{- end -}}