mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-08 22:04:57 -04:00
Update new-templatesystem-overview.md
This commit is contained in:
parent
ec2bbd3952
commit
e719d23600
@ -21,7 +21,7 @@ We have aimed to maintain as much backward compatibility as possible by mapping
|
||||
| The `layouts/shortcodes` folder is renamed to `layouts/_shortcodes`. | Rename the folder. |
|
||||
| Any folder in `layouts` that does not start with `_` represents the root of a [Page path]. In [Hugo v0.146.0], this can be nested as deeply as needed, and `_shortcodes` and `_markup` folders can be placed at any level in the tree.| No action required.|
|
||||
| The above also means that there's no top-level `layouts/taxonomy` folder anymore, unless this represents a [Page path].|Move them up to `layouts/` with one of the [Page kinds] `taxonomy` or `term` as the base name, or place the layouts into the taxonomy [Page path]. |
|
||||
|A template named `taxonomy.html` used to be a candidate for both Page kind `term` and `taxonomy`, no it's only considered for `taxonomy`.|Create both `taxonomy.html` and `term.html` or create a more general layout, e.g. `list.html`.|
|
||||
|A template named `taxonomy.html` used to be a candidate for both Page kind `term` and `taxonomy`, now it's only considered for `taxonomy`.|Create both `taxonomy.html` and `term.html` or create a more general layout, e.g. `list.html`.|
|
||||
| For base templates (e.g., `baseof.html`), in previous Hugo versions, you could prepend one identifier (layout, type, or kind) with a hyphen in front of the baseof keyword.|Move that identifier after the first "dot," e.g., rename`list-baseof.html` to `baseof.list.html`.|
|
||||
| We have added a new `all` "catch-all" layout. This means that if you have, e.g., `layouts/all.html` and that is the only template, that layout will be used for all HTML page rendering.||
|
||||
| We have removed the concept of `_internal` Hugo templates.[^internal]|Replace constructs similar to `{{ template "_internal/opengraph.html" . }}` with `{{ partial "opengraph.html" . }}`.|
|
||||
|
Loading…
x
Reference in New Issue
Block a user