Hardcoded main section name in where
clauses
#444
Labels
enhancement
New feature or request
Milestone
where
clauses
#444
Configuration
Actual behavior
If the site uses more than a main section type (e.g. something other than
post
orposts
), only content under the main section type is presented in list/summary pages, the categories page etc.Expected behavior
The theme should refrain from using the hardcoded
post
/post
type when looping over pages to compile a list and use themainSections
site parameter as suggested in the docs.Relevant upstream Hugo issue: gohugoio/hugo#3206
Steps to reproduce the behavior
post
sectiontest
, e.g.mv content/post content/test
I have already changed some templates to implement this feature. Will publish a PR soon.
The text was updated successfully, but these errors were encountered: