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
This commit is contained in:
Bjørn Erik Pedersen
2021-07-09 11:52:03 +02:00
parent 30eea3915b
commit 5cb52c2315
6 changed files with 129 additions and 32 deletions

View File

@@ -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
}