mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-17 21:01:26 +02:00
Merge commit '346b60358dd8ec2ca228e6635bff9d7914b398b7'
This commit is contained in:
@@ -9,9 +9,7 @@ action:
|
||||
signatures: [PAGES.ByWeight]
|
||||
---
|
||||
|
||||
Assign a [weight] to a page using the `weight` field in front matter. The weight must be a non-zero integer. Lighter items float to the top, while heavier items sink to the bottom. Unweighted or zero-weighted pages are placed at the end of the collection.
|
||||
|
||||
[weight]: /getting-started/glossary/#weight
|
||||
Assign a [weight](g) to a page using the `weight` field in front matter. The weight must be a non-zero integer. Lighter items float to the top, while heavier items sink to the bottom. Unweighted or zero-weighted pages are placed at the end of the collection.
|
||||
|
||||
```go-html-template
|
||||
{{ range .Pages.ByWeight }}
|
||||
|
@@ -15,11 +15,10 @@ action:
|
||||
|
||||
When grouping by date, the value is determined by your [site configuration], defaulting to the `date` field in front matter.
|
||||
|
||||
The [layout string] has the same format as the layout string for the [`time.Format`] function. The resulting group key is [localized] for language and region.
|
||||
The [layout string] has the same format as the layout string for the [`time.Format`] function. The resulting group key is [localized](g) for language and region.
|
||||
|
||||
[`time.Format`]: /functions/time/format/
|
||||
[layout string]: #layout-string
|
||||
[localized]: /getting-started/glossary/#localization
|
||||
[site configuration]: /getting-started/configuration/#configure-dates
|
||||
|
||||
{{% include "methods/pages/_common/group-sort-order.md" %}}
|
||||
|
@@ -15,11 +15,10 @@ action:
|
||||
|
||||
When grouping by expiration date, the value is determined by your [site configuration], defaulting to the `expiryDate` field in front matter.
|
||||
|
||||
The [layout string] has the same format as the layout string for the [`time.Format`] function. The resulting group key is [localized] for language and region.
|
||||
The [layout string] has the same format as the layout string for the [`time.Format`] function. The resulting group key is [localized](g) for language and region.
|
||||
|
||||
[`time.Format`]: /functions/time/format/
|
||||
[layout string]: #layout-string
|
||||
[localized]: /getting-started/glossary/#localization
|
||||
[site configuration]: /getting-started/configuration/#configure-dates
|
||||
|
||||
{{% include "methods/pages/_common/group-sort-order.md" %}}
|
||||
|
@@ -15,11 +15,10 @@ action:
|
||||
|
||||
When grouping by last modification date, the value is determined by your [site configuration], defaulting to the `lastmod` field in front matter.
|
||||
|
||||
The [layout string] has the same format as the layout string for the [`time.Format`] function. The resulting group key is [localized] for language and region.
|
||||
The [layout string] has the same format as the layout string for the [`time.Format`] function. The resulting group key is [localized](g) for language and region.
|
||||
|
||||
[`time.Format`]: /functions/time/format/
|
||||
[layout string]: #layout-string
|
||||
[localized]: /getting-started/glossary/#localization
|
||||
[site configuration]: /getting-started/configuration/#configure-dates
|
||||
|
||||
{{% include "methods/pages/_common/group-sort-order.md" %}}
|
||||
|
@@ -13,11 +13,10 @@ action:
|
||||
signatures: ['PAGES.GroupByParamDate PARAM LAYOUT [SORT]']
|
||||
---
|
||||
|
||||
The [layout string] has the same format as the layout string for the [`time.Format`] function. The resulting group key is [localized] for language and region.
|
||||
The [layout string] has the same format as the layout string for the [`time.Format`] function. The resulting group key is [localized](g) for language and region.
|
||||
|
||||
[`time.Format`]: /functions/time/format/
|
||||
[layout string]: #layout-string
|
||||
[localized]: /getting-started/glossary/#localization
|
||||
|
||||
{{% include "methods/pages/_common/group-sort-order.md" %}}
|
||||
|
||||
|
@@ -15,11 +15,10 @@ action:
|
||||
|
||||
When grouping by publish date, the value is determined by your [site configuration], defaulting to the `publishDate` field in front matter.
|
||||
|
||||
The [layout string] has the same format as the layout string for the [`time.Format`] function. The resulting group key is [localized] for language and region.
|
||||
The [layout string] has the same format as the layout string for the [`time.Format`] function. The resulting group key is [localized](g) for language and region.
|
||||
|
||||
[`time.Format`]: /functions/time/format/
|
||||
[layout string]: #layout-string
|
||||
[localized]: /getting-started/glossary/#localization
|
||||
[site configuration]: /getting-started/configuration/#configure-dates
|
||||
|
||||
{{% include "methods/pages/_common/group-sort-order.md" %}}
|
||||
|
@@ -45,7 +45,6 @@ To pass an options map:
|
||||
{{ end }}
|
||||
{{< /code >}}
|
||||
|
||||
|
||||
## Options
|
||||
|
||||
indices
|
||||
@@ -60,7 +59,7 @@ namedSlices
|
||||
[`keyVals`]: /functions/collections/keyvals/
|
||||
|
||||
fragments
|
||||
: (`slice`) A list of special keywords that is used for indices configured as type "fragments". This will match the [fragment] identifiers of the documents.
|
||||
: (`slice`) A list of special keywords that is used for indices configured as type "fragments". This will match the [fragment](g) identifiers of the documents.
|
||||
|
||||
A contrived example using all of the above:
|
||||
|
||||
@@ -75,5 +74,4 @@ A contrived example using all of the above:
|
||||
```
|
||||
|
||||
[details]: /content-management/related/
|
||||
[fragment]: /getting-started/glossary/#fragment
|
||||
[related content configuration]: /content-management/related/
|
||||
|
Reference in New Issue
Block a user