diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2020-03-03 08:32:02 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2020-03-03 13:29:58 +0100 |
commit | 3d3fa5c3fe5ee0c9df59d682ee0acaba71a06ae1 (patch) | |
tree | a4808817ec3dfc3b2f7cf4dc3718ba3a088e1c1f /resources/resource_spec.go | |
parent | ee3d02134d9b46b10e5a0403c9986ee1833ae6c1 (diff) |
Add build.UseResourceCacheWhen
Fixes #6993
Diffstat (limited to 'resources/resource_spec.go')
-rw-r--r-- | resources/resource_spec.go | 6 |
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 |