mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-27 22:09:53 +02:00
Add support for baseof.ace templates in themes.
When we find a template that requires a base template, we should also look for that base template in the current theme. Fixes #1215.
This commit is contained in:
committed by
Bjørn Erik Pedersen
parent
29e786aac5
commit
0987e98db3
@@ -35,6 +35,8 @@ In Hugo the base template will be chosen in the following order:
|
||||
2. <current-path>/baseof.ace
|
||||
3. _default/<template-name>-baseof.ace, e.g. list-baseof.ace.
|
||||
4. _default/baseof.ace
|
||||
5. <themedir>/layouts/_default/<template-name>-baseof.ace
|
||||
6. <themedir>/layouts/_default/baseof.ace
|
||||
```
|
||||
|
||||
In the above, `current-path` is where the corresponding inner template lives, `list.ace`, `single.ace`, `index.ace` ...
|
||||
|
Reference in New Issue
Block a user