From ab28352d1c4a59561e77e3853a5f3e96fef35632 Mon Sep 17 00:00:00 2001 From: vimux Date: Thu, 21 Mar 2019 11:21:36 -0400 Subject: [PATCH] Fix mainSections param --- layouts/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/index.html b/layouts/index.html index ea47e5c..90b9b32 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -6,7 +6,7 @@ {{- end }}
- {{- $mainSections := .Site.Params.mainSections | default (slice "post") }} + {{- $mainSections := .Site.Params.mainSections }} {{- $paginator := .Paginate (where .Data.Pages "Section" "in" $mainSections) }} {{- range $paginator.Pages }}