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/)