From 84444120ffe8d92f6d153ed021b4a23a390fdbe0 Mon Sep 17 00:00:00 2001 From: Joe Mooring Date: Tue, 16 Mar 2021 09:22:41 -0700 Subject: [PATCH] Revert "Fix sample data for sort function (#1363)" (#1364) This reverts commit 05c8619f480c47343df66d1b1980fef83820e552. --- content/en/functions/sort.md | 3 ++- content/en/getting-started/usage.md | 12 ++++++------ 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/content/en/functions/sort.md b/content/en/functions/sort.md index 9296d04c0..b83e6b0bd 100644 --- a/content/en/functions/sort.md +++ b/content/en/functions/sort.md @@ -23,7 +23,7 @@ A sorted array of map values will be returned with the keys eliminated. There ar ``` +++ -tags = [ "tag1", "tag3", "tag2" ] +keywords: [ "tag3", "tag1", "tag2" ] +++ // Site config @@ -62,3 +62,4 @@ Authors: {{ range sort .Site.Params.authors "lastName" "desc" }}{{ .lastName }} → Outputs Authors: Perkins Linsley Bergevin ``` + diff --git a/content/en/getting-started/usage.md b/content/en/getting-started/usage.md index 0609acf12..e35126fd0 100644 --- a/content/en/getting-started/usage.md +++ b/content/en/getting-started/usage.md @@ -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: -1. Content with `draft: true` status -2. Content with a past `expirydate` value -3. Content with a future `publishdate` value +1. Content with a future `publishdate` value +2. Content with `draft: true` status +3. Content with a past `expirydate` 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]: -`-D` or `--buildDrafts`\ -`-E` or `--buildExpired`\ -`-F` or `--buildFuture`\ +1. `--buildFuture` +2. `--buildDrafts` +3. `--buildExpired` ## LiveReload