mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-17 11:44:48 -04:00
pagemeta: Make BuildConfig.Render an enum
Allowing links on pages without rendering them. Fixes #7783
This commit is contained in:
parent
a78d3849f6
commit
70ce6ae33e
@ -20,13 +20,24 @@ They are stored in a reserved Front Matter object named `_build` with the follow
|
|||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
_build:
|
_build:
|
||||||
render: true
|
render: always
|
||||||
list: always
|
list: always
|
||||||
publishResources: true
|
publishResources: true
|
||||||
```
|
```
|
||||||
|
|
||||||
#### render
|
#### render
|
||||||
If true, the page will be treated as a published page, holding its dedicated output files (`index.html`, etc...) and permalink.
|
If `always`, the page will be treated as a published page, holding its dedicated output files (`index.html`, etc...) and permalink.
|
||||||
|
|
||||||
|
{{< new-in "0.76.0" >}} We extended this property from a boolean to an enum in Hugo 0.76.0. Valid values are:
|
||||||
|
|
||||||
|
never
|
||||||
|
: The page will not be included in any page collection.
|
||||||
|
|
||||||
|
always (default)
|
||||||
|
: The page will be rendered to disk and get a `RelPermalink` etc.
|
||||||
|
|
||||||
|
link
|
||||||
|
: The page will be not be rendered to disk, but will get a `RelPermalink`.
|
||||||
|
|
||||||
#### list
|
#### list
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user