Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2020-03-03 10:32:02 +0300
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2020-03-03 15:29:58 +0300
commit3d3fa5c3fe5ee0c9df59d682ee0acaba71a06ae1 (patch)
treea4808817ec3dfc3b2f7cf4dc3718ba3a088e1c1f /resources/resource_spec.go
parentee3d02134d9b46b10e5a0403c9986ee1833ae6c1 (diff)
Add build.UseResourceCacheWhen
Fixes #6993
Diffstat (limited to 'resources/resource_spec.go')
-rw-r--r--resources/resource_spec.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/resources/resource_spec.go b/resources/resource_spec.go
index 89b28bf83..66565e4cc 100644
--- a/resources/resource_spec.go
+++ b/resources/resource_spec.go
@@ -22,6 +22,8 @@ import (
"path/filepath"
"strings"
+ "github.com/gohugoio/hugo/config"
+
"github.com/gohugoio/hugo/hugofs"
"github.com/gohugoio/hugo/helpers"
@@ -69,6 +71,7 @@ func NewSpec(
MediaTypes: mimeTypes,
OutputFormats: outputFormats,
Permalinks: permalinks,
+ BuildConfig: config.DecodeBuild(s.Cfg),
FileCaches: fileCaches,
imageCache: newImageCache(
fileCaches.ImageCache(),
@@ -92,7 +95,8 @@ type Spec struct {
TextTemplates tpl.TemplateParseFinder
- Permalinks page.PermalinkExpander
+ Permalinks page.PermalinkExpander
+ BuildConfig config.Build
// Holds default filter settings etc.
imaging *images.ImageProcessor