Most of the information on this page is in the official document.
https://themes.gohugo.io/mainroad/
This post is a personal memo to remind me of what I did.
Main page It “specifies section pages to show on home page and the “Recent articles” widget.” The following config line shows content/general and content/hugo category on our main page.
[Params] mainSections = ["general", "hugo"] Add Google Analytics Mainroad theme supports Google Analytics as default, so you don’t need to input the JavaScript in the template manually.