hugo/resource
Bjørn Erik Pedersen 78f8475a05 Fix Resource output in multihost setups
In Hugo 0.46 we made the output of what you get from resources.Get and similar static, i.e. language agnostic. This makes total sense, as it is wasteful and time-consuming to do SASS/SCSS/PostCSS processing for lots of languages when the output is lots of duplicates with different filenames.

But since we now output the result once only, this had a negative side effect for multihost setups: We publish the resource once only to the root folder (i.e. not to the language "domain folder").

This commit removes the language code from the processed image keys. This creates less duplication in the file cache, but it means that you should do a `hugo --gc` to clean up stale files.

Fixes #5058
2018-08-13 19:00:51 +02:00
..
bundler resource/bundler: Improve error message 2018-07-16 10:42:07 +02:00
create resource: Clean up the in-memory Resource reader usage 2018-07-12 21:32:52 +02:00
integrity resource/integrity: Remove unused code 2018-07-14 11:17:48 +02:00
minifier Add support for minification of final output 2018-08-06 19:58:41 +02:00
postcss resource/postcss: Try node_modules/postcss-cli/bin/postcss first 2018-07-18 10:00:50 +02:00
templates Add Hugo Piper with SCSS support and much more 2018-07-06 11:46:12 +02:00
testdata resource: Fix path duplication/flattening in processed images 2018-03-14 17:04:14 +01:00
tocss/scss tocss/scss: Improve _ prefix handling in SCSS imports 2018-07-31 16:53:03 +02:00
image.go Fix Resource output in multihost setups 2018-08-13 19:00:51 +02:00
image_cache.go Fix Resource output in multihost setups 2018-08-13 19:00:51 +02:00
image_test.go Fix broken tests 2018-08-09 20:58:31 +02:00
readers.go resource: Clean up the in-memory Resource reader usage 2018-07-12 21:32:52 +02:00
resource.go Fix Resource output in multihost setups 2018-08-13 19:00:51 +02:00
resource_cache.go Add support for minification of final output 2018-08-06 19:58:41 +02:00
resource_metadata.go Add Hugo Piper with SCSS support and much more 2018-07-06 11:46:12 +02:00
resource_metadata_test.go Add Hugo Piper with SCSS support and much more 2018-07-06 11:46:12 +02:00
resource_test.go Fix Resource output in multihost setups 2018-08-13 19:00:51 +02:00
smartcrop.go resource: Add smart cropping 2018-02-05 13:59:15 +01:00
testhelpers_test.go Add support for minification of final output 2018-08-06 19:58:41 +02:00
transform.go Fix Resource output in multihost setups 2018-08-13 19:00:51 +02:00
transform_test.go Add Hugo Piper with SCSS support and much more 2018-07-06 11:46:12 +02:00