Is there a way to specify the content that should be shown on the home page? #724
-
It seems at-present that the home page selects the content to be displayed based on the most recently created post, and then only displays content from that category. For example, I have three categories, Posts, Guides, and Opt Out Podcast -- I would like to default to showing "Posts" on the home page, but every time I release an episode of the podcast or post a new guide, it defaults to showing only episodes or only guides. Is there a way to change that behavior in You can see an example of how other themes handle this here: https://github.com/panr/hugo-theme-terminal/blob/master/exampleSite/config.toml#L7 In Terminal, you can specify the category of post to "pin" to the home page via |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Nevermind, I've found the solution by digging through the theme source files! Users can specify the category of content they want shown on the home page by adding the following under
Replace |
Beta Was this translation helpful? Give feedback.
Nevermind, I've found the solution by digging through the theme source files!
Users can specify the category of content they want shown on the home page by adding the following under
params:
inconfig.yml
:mainSections: posts
Replace
posts
with the proper subdirectory undercontent/
of the content you want displayed on the home page.