mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-14 12:16:55 +00:00
Allow headless bundles to list pages via $page.Pages and $page.RegularPages
Fixes #7075
This commit is contained in:
1 parent
2a0ea423d7
commit
efeea7be01
1 file changed
+15
-1
@@ -21,7 +21,7 @@ They are stored in a reserved Front Matter object named `_build` with the follow
|
|||||||
```yaml
|
```yaml
|
||||||
_build:
|
_build:
|
||||||
render: true
|
render: true
|
||||||
list: true
|
list: always
|
||||||
publishResources: true
|
publishResources: true
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -29,6 +29,20 @@ _build:
|
|||||||
If true, the page will be treated as a published page, holding its dedicated output files (`index.html`, etc...) and permalink.
|
If true, the page will be treated as a published page, holding its dedicated output files (`index.html`, etc...) and permalink.
|
||||||
|
|
||||||
#### list
|
#### list
|
||||||
|
|
||||||
|
Note that we extended this property from a boolean to an enum in Hugo 0.58.0.
|
||||||
|
|
||||||
|
Valid values are:
|
||||||
|
|
||||||
|
never
|
||||||
|
: The page will not be incldued in any page collection.
|
||||||
|
|
||||||
|
always (default)
|
||||||
|
: The page will be included in all page collections, e.g. `site.RegularPages`, `$page.Pages`.
|
||||||
|
|
||||||
|
local
|
||||||
|
: The page will be included in any _local_ page collection, e.g. `$page.RegularPages`, `$page.Pages`. One use case for this would be to create fully navigable, but headless content sections. {{< new-in "0.58.0" >}}
|
||||||
|
|
||||||
If true, the page will be treated as part of the project's collections and, when appropriate, returned by Hugo's listing methods (`.Pages`, `.RegularPages` etc...).
|
If true, the page will be treated as part of the project's collections and, when appropriate, returned by Hugo's listing methods (`.Pages`, `.RegularPages` etc...).
|
||||||
|
|
||||||
#### publishResources
|
#### publishResources
|
||||||
|
|||||||
Reference in new issue
Block a user