summaryrefslogtreecommitdiffstats
path: root/docs/content/en/methods/page/Render.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/content/en/methods/page/Render.md')
-rw-r--r--docs/content/en/methods/page/Render.md25
1 files changed, 12 insertions, 13 deletions
diff --git a/docs/content/en/methods/page/Render.md b/docs/content/en/methods/page/Render.md
index 10f7f9ca5..4ee09fb6e 100644
--- a/docs/content/en/methods/page/Render.md
+++ b/docs/content/en/methods/page/Render.md
@@ -26,22 +26,21 @@ 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](g).|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:
```text
layouts/
-├── _default/
-│ ├── baseof.html
-│ ├── home.html
-│ ├── li.html <-- used for other content types
-│ ├── list.html
-│ ├── single.html
-│ └── summary.html
-└── books/
- ├── li.html <-- used when content type is "books"
- └── summary.html
+├── books/
+│ └── li.html <-- used when content type is "books"
+├── baseof.html
+├── home.html
+├── li.html <-- used for other content types
+├── page.html
+├── section.html
+├── taxonomy.html
+└── term.html
```
And this template:
@@ -63,10 +62,10 @@ layouts/books/li.html
For all other content types the `Render` methods calls:
```text
-layouts/_default/li.html
+layouts/li.html
```
See [content views] for more examples.
-[content views]: /templates/content-view/
+[content views]: /templates/types/#content-view
[`partial`]: /functions/partials/include/