From 8dee2d1294b1f045621ebb93b1f9407d6fccd5ec Mon Sep 17 00:00:00 2001 From: Serghei Iakovlev Date: Sun, 29 May 2022 10:36:53 +0200 Subject: Fix default section type for the `params.mainSections` --- layouts/_default/list.json.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'layouts/_default/list.json.json') diff --git a/layouts/_default/list.json.json b/layouts/_default/list.json.json index 30b6f80..b912df0 100644 --- a/layouts/_default/list.json.json +++ b/layouts/_default/list.json.json @@ -3,7 +3,7 @@ {{- $pages := slice -}} {{- if $.IsHome -}} - {{- $mainSections := site.Params.mainSections | default (slice "post") }} + {{- $mainSections := site.Params.mainSections | default (slice "posts") }} {{- $pages = where $pctx.RegularPages.ByDate.Reverse "Type" "in" $mainSections -}} {{- else if $.IsSection -}} {{- $pages = $pctx.RegularPages.ByDate.Reverse -}} -- cgit v1.2.3