mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-14 14:17:43 +00:00
Add note for reserved partial name.
See. https://github.com/gohugoio/hugo/issues/5373
This commit is contained in:
1 parent
40b881cc24
commit
3eebd98c3d
1 file changed
+4
@@ -60,6 +60,10 @@ All partials are called within your templates using the following pattern:
|
|||||||
One of the most common mistakes with new Hugo users is failing to pass a context to the partial call. In the pattern above, note how "the dot" (`.`) is required as the second argument to give the partial context. You can read more about "the dot" in the [Hugo templating introduction](/templates/introduction/).
|
One of the most common mistakes with new Hugo users is failing to pass a context to the partial call. In the pattern above, note how "the dot" (`.`) is required as the second argument to give the partial context. You can read more about "the dot" in the [Hugo templating introduction](/templates/introduction/).
|
||||||
{{% /note %}}
|
{{% /note %}}
|
||||||
|
|
||||||
|
{{% note %}}
|
||||||
|
`<PARTIAL>` starting with `baseof` is reserved. ([#5373](https://github.com/gohugoio/hugo/issues/5373))
|
||||||
|
{{% /note %}}
|
||||||
|
|
||||||
As shown in the above example directory structure, you can nest your directories within `partials` for better source organization. You only need to call the nested partial's path relative to the `partials` directory:
|
As shown in the above example directory structure, you can nest your directories within `partials` for better source organization. You only need to call the nested partial's path relative to the `partials` directory:
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in new issue
Block a user