Handle themes in the new file cache (for images, assets)
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Fri, 23 Nov 2018 08:16:42 +0000 (09:16 +0100)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Fri, 23 Nov 2018 20:09:00 +0000 (21:09 +0100)
commitf9b4eb4f3968d32f45e0168c854e6b0c7f3a90b0
treebca87a80e39fe35b57fcb36b75fa34e6a1da677a
parente82b2dc8c1628f2da33e5fb0bae1b03e0594ad2c
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
cache/filecache/filecache.go
cache/filecache/filecache_config.go
cache/filecache/filecache_config_test.go
cache/filecache/filecache_pruner_test.go
cache/filecache/filecache_test.go
deps/deps.go
go.sum
hugolib/filesystems/basefs.go
hugolib/filesystems/basefs_test.go
resource/testhelpers_test.go
tpl/data/resources_test.go