aboutsummaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
authorolOwOlo <26087907+olOwOlo@users.noreply.github.com>2019-09-08 21:21:36 +0800
committerolOwOlo <26087907+olOwOlo@users.noreply.github.com>2019-09-08 21:21:36 +0800
commit5a3e5599d2a2bb509014b31901be813387f3edba (patch)
tree464f13fc31c3a327ce4feb45bdcb205cd877395e /layouts
parentfd1b8d7bc8dcb84d008486562732fbba6b12adad (diff)
fix(index.html): .Site.RegularPages
This closes #188, closes #192
Diffstat (limited to 'layouts')
-rw-r--r--layouts/index.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/index.html b/layouts/index.html
index 9d013f2..3970758 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -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 -}} \ No newline at end of file
+{{- end -}}