From cc13d25ff4b0d757cae3ffe12917c2d816bf82e8 Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Sat, 12 Nov 2022 13:20:43 +0530 Subject: [PATCH] Document site.Params.mainSections usage #1082 --- FAQs.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/FAQs.md b/FAQs.md index 3f912ad..eaf739a 100644 --- a/FAQs.md +++ b/FAQs.md @@ -11,6 +11,7 @@ - [Adding Custom Favicon(s)](#adding-custom-favicons) - [Centering image in markdown](#centering-image-in-markdown) - [Using Hugo's Syntax highlighter "chroma"](#using-hugos-syntax-highlighter-chroma) +- [Posts from only one folder/section visible on home page?](#posts-from-only-one-foldersection-visible-on-home-page) - [References](#references) --- @@ -316,6 +317,23 @@ xhr.open("GET", "https://example.com/index.json"); --- +## Posts from only one folder/section visible on home page + +That is because PaperMod uses `mainsections` from Hugo. +Read more: https://gohugo.io/functions/where/#mainsections + +If you have not set this config parameter in site config, it will default to the section with the most pages. +You can customize it with: + +```yml +params: + mainSections: + - blog + - docs +``` + +--- + ## References - [Override a Hugo theme](https://zwbetz.com/override-a-hugo-theme/)