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
path: root/deps
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2018-11-23 11:16:42 +0300
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2018-11-23 23:09:00 +0300
commitf9b4eb4f3968d32f45e0168c854e6b0c7f3a90b0 (patch)
treebca87a80e39fe35b57fcb36b75fa34e6a1da677a /deps
parente82b2dc8c1628f2da33e5fb0bae1b03e0594ad2c (diff)
Handle themes in the new file cache (for images, assets)
In the newly consolidated file cache implementation, we forgot that we also look in the theme(s) for assets (SCSS transformations etc.), which is not good for Netlify and the demo sites. Fixes #5460
Diffstat (limited to 'deps')
-rw-r--r--deps/deps.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/deps/deps.go b/deps/deps.go
index a1b54a862..de6d8b52a 100644
--- a/deps/deps.go
+++ b/deps/deps.go
@@ -193,7 +193,7 @@ func New(cfg DepsCfg) (*Deps, error) {
return nil, err
}
- fileCaches, err := filecache.NewCachesFromPaths(ps.Paths)
+ fileCaches, err := filecache.NewCaches(ps)
if err != nil {
return nil, errors.WithMessage(err, "failed to create file caches from configuration")
}