diff options
author | Bjørn Erik Pedersen <[email protected]> | 2021-07-09 11:52:03 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2021-07-10 11:13:41 +0200 |
commit | 5cb52c23150032b3fdb211a095745c512369b463 (patch) | |
tree | 3b0c83c462e15e4e55acdf674b70c6ef140291c0 /hugolib/content_map_page.go | |
parent | 30eea3915b67f72611a3b2f4547146d4c6a96864 (diff) | |
download | hugo-5cb52c23150032b3fdb211a095745c512369b463.tar.gz hugo-5cb52c23150032b3fdb211a095745c512369b463.zip |
Add config.cascade
This commit adds support for using the `cascade` keyword in your configuration file(s), e.g. `config.toml`.
Note that
* Every feature of `cascade` is available, e.g. `_target` to target specific page sets.
* Pages, e.g. the home page, can overwrite the cascade defined in config.
Fixes #8741
Diffstat (limited to 'hugolib/content_map_page.go')
-rw-r--r-- | hugolib/content_map_page.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/hugolib/content_map_page.go b/hugolib/content_map_page.go index 74dd0e029..278d24766 100644 --- a/hugolib/content_map_page.go +++ b/hugolib/content_map_page.go @@ -462,10 +462,13 @@ func (m *pageMap) assembleSections() error { if parent != nil { parentBucket = parent.p.bucket + } else if s == "/" { + parentBucket = m.s.siteBucket } kind := page.KindSection if s == "/" { + kind = page.KindHome } |