mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-15 09:44:38 -04:00
Change wording on Page Resources documentation
This commit is contained in:
parent
d213b45994
commit
bd0a0207c4
@ -78,7 +78,7 @@ GetMatch
|
|||||||
|
|
||||||
## Page Resources Metadata
|
## Page Resources Metadata
|
||||||
|
|
||||||
Page Resources' metadata is managed from their page's front matter with an array/table parameter named `resources`. You can batch assign values using a [wildcards](http://tldp.org/LDP/GNU-Linux-Tools-Summary/html/x11655.htm).
|
The page resources' metadata is managed from the corresponding page's front matter with an array/table parameter named `resources`. You can batch assign values using [wildcards](http://tldp.org/LDP/GNU-Linux-Tools-Summary/html/x11655.htm).
|
||||||
|
|
||||||
{{% note %}}
|
{{% note %}}
|
||||||
Resources of type `page` get `Title` etc. from their own front matter.
|
Resources of type `page` get `Title` etc. from their own front matter.
|
||||||
@ -135,7 +135,7 @@ From the example above:
|
|||||||
- Every docx in the bundle will receive the `word` icon.
|
- Every docx in the bundle will receive the `word` icon.
|
||||||
|
|
||||||
{{% warning %}}
|
{{% warning %}}
|
||||||
The __order matters__ --- Only the **first set** values of the `title`, `name` and `params`-**keys** will be used. Consecutive parameters will be set only for the ones not already set. For example, in the above example, `.Params.icon` is already first set to `"photo"` in `src = "documents/photo_specs.pdf"`. So that would not get overridden to `"pdf"` by the later set `src = "**.pdf"` rule.
|
The __order matters__ --- Only the **first set** values of the `title`, `name` and `params`-**keys** will be used. Consecutive parameters will be set only for the ones not already set. In the above example, `.Params.icon` is first set to `"photo"` in `src = "documents/photo_specs.pdf"`. So that would not get overridden to `"pdf"` by the later set `src = "**.pdf"` rule.
|
||||||
{{%/ warning %}}
|
{{%/ warning %}}
|
||||||
|
|
||||||
### The `:counter` placeholder in `name` and `title`
|
### The `:counter` placeholder in `name` and `title`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user