mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-20 21:31:32 +02:00
Merge commit '346b60358dd8ec2ca228e6635bff9d7914b398b7'
This commit is contained in:
@@ -15,7 +15,7 @@ The `GetPage` method is also available on `Page` objects, allowing you to specif
|
||||
|
||||
[details]: /methods/page/getpage/
|
||||
|
||||
When using the `GetPage` method on a `Site` object, specify a path relative to the content directory.
|
||||
When using the `GetPage` method on a `Site` object, specify a path relative to the `content` directory.
|
||||
|
||||
If Hugo cannot resolve the path to a page, the method returns nil.
|
||||
|
||||
@@ -96,7 +96,7 @@ content/
|
||||
└── _index.md
|
||||
```
|
||||
|
||||
In the home template, use the `GetPage` method on a `Site` object to render all the images in the headless [page bundle]:
|
||||
In the home template, use the `GetPage` method on a `Site` object to render all the images in the headless [page bundle](g):
|
||||
|
||||
```go-html-template
|
||||
{{ with .Site.GetPage "/headless" }}
|
||||
@@ -105,5 +105,3 @@ In the home template, use the `GetPage` method on a `Site` object to render all
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
```
|
||||
|
||||
[page bundle]: /getting-started/glossary/#page-bundle
|
||||
|
Reference in New Issue
Block a user