mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-30 22:39:58 +02:00
Merge commit '346b60358dd8ec2ca228e6635bff9d7914b398b7'
This commit is contained in:
@@ -28,7 +28,7 @@ Although similar to the [`partial`] function, there are key differences.
|
||||
`Render` method|`partial` function|
|
||||
:--|:--
|
||||
The `Page` object is automatically passed to the given template. You cannot pass additional context.| You must specify the context, allowing you to pass a combination of objects, slices, maps, and scalars.
|
||||
The path to the template is determined by the [content type].|You must specify the path to the template, relative to the layouts/partials directory.
|
||||
The path to the template is determined by the [content type](g).|You must specify the path to the template, relative to the `layouts/partials` directory.
|
||||
|
||||
Consider this layout structure:
|
||||
|
||||
@@ -72,4 +72,3 @@ See [content views] for more examples.
|
||||
|
||||
[content views]: /templates/content-view/
|
||||
[`partial`]: /functions/partials/include/
|
||||
[content type]: /getting-started/glossary/#content-type
|
||||
|
Reference in New Issue
Block a user