mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-14 12:34:44 -04:00
Fix sample data for sort function (#1363)
This commit is contained in:
parent
2beb1c0edf
commit
05c8619f48
@ -23,7 +23,7 @@ A sorted array of map values will be returned with the keys eliminated. There ar
|
|||||||
|
|
||||||
```
|
```
|
||||||
+++
|
+++
|
||||||
keywords: [ "tag3", "tag1", "tag2" ]
|
tags = [ "tag1", "tag3", "tag2" ]
|
||||||
+++
|
+++
|
||||||
|
|
||||||
// Site config
|
// Site config
|
||||||
@ -62,4 +62,3 @@ Authors: {{ range sort .Site.Params.authors "lastName" "desc" }}{{ .lastName }}
|
|||||||
|
|
||||||
→ Outputs Authors: Perkins Linsley Bergevin
|
→ Outputs Authors: Perkins Linsley Bergevin
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -120,15 +120,15 @@ in 90 ms
|
|||||||
|
|
||||||
Hugo allows you to set `draft`, `publishdate`, and even `expirydate` in your content's [front matter][]. By default, Hugo will not publish:
|
Hugo allows you to set `draft`, `publishdate`, and even `expirydate` in your content's [front matter][]. By default, Hugo will not publish:
|
||||||
|
|
||||||
1. Content with a future `publishdate` value
|
1. Content with `draft: true` status
|
||||||
2. Content with `draft: true` status
|
2. Content with a past `expirydate` value
|
||||||
3. Content with a past `expirydate` value
|
3. Content with a future `publishdate` value
|
||||||
|
|
||||||
All three of these can be overridden during both local development *and* deployment by adding the following flags to `hugo` and `hugo server`, respectively, or by changing the boolean values assigned to the fields of the same name (without `--`) in your [configuration][config]:
|
All three of these can be overridden during both local development *and* deployment by adding the following flags to `hugo` and `hugo server`, respectively, or by changing the boolean values assigned to the fields of the same name (without `--`) in your [configuration][config]:
|
||||||
|
|
||||||
1. `--buildFuture`
|
`-D` or `--buildDrafts`\
|
||||||
2. `--buildDrafts`
|
`-E` or `--buildExpired`\
|
||||||
3. `--buildExpired`
|
`-F` or `--buildFuture`\
|
||||||
|
|
||||||
## LiveReload
|
## LiveReload
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user