From 5a3e5599d2a2bb509014b31901be813387f3edba Mon Sep 17 00:00:00 2001 From: olOwOlo <26087907+olOwOlo@users.noreply.github.com> Date: Sun, 8 Sep 2019 21:21:36 +0800 Subject: [PATCH] fix(index.html): .Site.RegularPages This closes #188, closes #192 --- layouts/index.html | 4 ++-- 1 file 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" -}}
{{/* (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 @@ {{- end }} -{{- end -}} \ No newline at end of file +{{- end -}}