mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-22 21:42:50 +02:00
docs: Add notes about some output format behaviour
This commit is contained in:
@@ -106,6 +106,7 @@ Example from site config in `config.toml`:
|
|||||||
* The names used must match the `Name` of a defined `Output Format`.
|
* The names used must match the `Name` of a defined `Output Format`.
|
||||||
* Any `Kind` without a definition will get `HTML`.
|
* Any `Kind` without a definition will get `HTML`.
|
||||||
* These can be overriden per `Page` in front matter (see below).
|
* These can be overriden per `Page` in front matter (see below).
|
||||||
|
* When `outputs` is specified, only the formats defined in outputs will be rendered
|
||||||
|
|
||||||
A `Page` with `YAML` front matter defining some output formats for that `Page`:
|
A `Page` with `YAML` front matter defining some output formats for that `Page`:
|
||||||
|
|
||||||
@@ -118,7 +119,11 @@ A `Page` with `YAML` front matter defining some output formats for that `Page`:
|
|||||||
- json
|
- json
|
||||||
---
|
---
|
||||||
```
|
```
|
||||||
Note that the names used for the output formats are case insensitive.
|
Note:
|
||||||
|
|
||||||
|
* The names used for the output formats are case insensitive.
|
||||||
|
* The first output format in the list will act as the default.
|
||||||
|
* The default output format is used when generating links to other pages in menus, etc.
|
||||||
|
|
||||||
## Link to Output Formats
|
## Link to Output Formats
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user