mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-29 07:00:31 +03:00
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
This commit is contained in:
parent
e82b2dc8c1
commit
f9b4eb4f39
11 changed files with 207 additions and 97 deletions
|
@ -52,7 +52,7 @@ func newTestResourceSpecForBaseURL(assert *require.Assertions, baseURL string) *
|
|||
s, err := helpers.NewPathSpec(fs, cfg)
|
||||
assert.NoError(err)
|
||||
|
||||
filecaches, err := filecache.NewCachesFromPaths(s.Paths)
|
||||
filecaches, err := filecache.NewCaches(s)
|
||||
assert.NoError(err)
|
||||
|
||||
spec, err := NewSpec(s, filecaches, nil, output.DefaultFormats, media.DefaultTypes)
|
||||
|
@ -88,7 +88,7 @@ func newTestResourceOsFs(assert *require.Assertions) *Spec {
|
|||
s, err := helpers.NewPathSpec(fs, cfg)
|
||||
assert.NoError(err)
|
||||
|
||||
filecaches, err := filecache.NewCachesFromPaths(s.Paths)
|
||||
filecaches, err := filecache.NewCaches(s)
|
||||
assert.NoError(err)
|
||||
|
||||
spec, err := NewSpec(s, filecaches, nil, output.DefaultFormats, media.DefaultTypes)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue