diff options
| author | Serghei Iakovlev <egrep@protonmail.ch> | 2022-05-29 10:36:53 +0200 |
|---|---|---|
| committer | Serghei Iakovlev <egrep@protonmail.ch> | 2022-05-29 10:37:50 +0200 |
| commit | 8dee2d1294b1f045621ebb93b1f9407d6fccd5ec (patch) | |
| tree | 9f14ac105a2eda5584299555f7ea5edbb562aeee /layouts/_default/list.feed.xml | |
| parent | 5e3d262a41a71a95f6333609767e3466a214ead4 (diff) | |
| download | gohugo-theme-ed-8dee2d1294b1f045621ebb93b1f9407d6fccd5ec.tar.gz | |
Fix default section type for the `params.mainSections`
Diffstat (limited to 'layouts/_default/list.feed.xml')
| -rw-r--r-- | layouts/_default/list.feed.xml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/_default/list.feed.xml b/layouts/_default/list.feed.xml index 87d62cc..ae16aca 100644 --- a/layouts/_default/list.feed.xml +++ b/layouts/_default/list.feed.xml @@ -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 -}} |
