summaryrefslogtreecommitdiffstats
path: root/docs/content
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2020-03-03 08:32:02 +0100
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2020-03-03 13:29:58 +0100
commit3d3fa5c3fe5ee0c9df59d682ee0acaba71a06ae1 (patch)
treea4808817ec3dfc3b2f7cf4dc3718ba3a088e1c1f /docs/content
parentee3d02134d9b46b10e5a0403c9986ee1833ae6c1 (diff)
Add build.UseResourceCacheWhen
Fixes #6993
Diffstat (limited to 'docs/content')
-rw-r--r--docs/content/en/getting-started/configuration.md18
1 files changed, 18 insertions, 0 deletions
diff --git a/docs/content/en/getting-started/configuration.md b/docs/content/en/getting-started/configuration.md
index b19cb45d9..1f1551937 100644
--- a/docs/content/en/getting-started/configuration.md
+++ b/docs/content/en/getting-started/configuration.md
@@ -87,6 +87,9 @@ baseURL
blackfriday
: See [Configure Blackfriday](/getting-started/configuration-markup#blackfriday)
+build
+: See [Configure Build](#configure-build)
+
buildDrafts (false)
: Include drafts when building.
@@ -288,6 +291,21 @@ enableemoji: true
```
{{% /note %}}
+## Configure Build
+
+{{< new-in "0.66.0" >}}
+
+The `build` configuration section contains global build-realated configuration options.
+
+{{< code-toggle file="config">}}
+[build]
+useResourceCacheWhen="fallback"
+{{< /code-toggle >}}
+
+
+useResourceCacheWhen
+: When to use the cached resources in `/resources/_gen` for PostCSS and ToCSS. Valid values are `never`, `always` and `fallback`. The last value means that the cache will be tried if PostCSS/extended version is not available.
+
## Configure Title Case
Set `titleCaseStyle` to specify the title style used by the [title](/functions/title/) template function and the automatic section titles in Hugo. It defaults to [AP Stylebook](https://www.apstylebook.com/) for title casing, but you can also set it to `Chicago` or `Go` (every word starts with a capital letter).