From 0624ac1982deb7ff5330e8b34fb96d66c7cb5bdb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Tue, 3 Mar 2020 08:32:02 +0100 Subject: [PATCH] Add build.UseResourceCacheWhen Fixes #6993 --- content/en/getting-started/configuration.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/content/en/getting-started/configuration.md b/content/en/getting-started/configuration.md index b19cb45d9..1f1551937 100644 --- a/content/en/getting-started/configuration.md +++ b/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).