hugo/hugolib
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
..
filesystems resource/scss: Add IncludePaths config option 2018-07-20 17:50:44 +02:00
pagemeta
paths Fix Resource output in multihost setups 2018-08-13 19:00:51 +02:00
testdata
testsite hugolib: Add multiple content dirs to GitInfo test site 2018-08-11 19:51:19 +02:00
404_test.go
alias.go Update alias.go 2018-08-07 09:42:49 +02:00
alias_test.go
author.go
case_insensitive_test.go
config.go hugolib: Only set 'allThemes' if there are themes in the config file 2018-07-15 16:13:48 +02:00
config_test.go Add configurable ref/relref error handling and notFoundURL 2018-07-19 14:32:43 +02:00
datafiles_test.go
disableKinds_test.go Simplify .Site.GetPage etc. 2018-07-18 00:07:20 +02:00
embedded_shortcodes_test.go Fix broken tests 2018-08-09 20:58:31 +02:00
embedded_templates_test.go
fileInfo.go
gitinfo.go hugolib: Fix GitInfo when multiple content dirs 2018-08-11 19:51:19 +02:00
hugo_info.go
hugo_info_test.go
hugo_sites.go Add support for minification of final output 2018-08-06 19:58:41 +02:00
hugo_sites_build.go Flush partialCached cache on rebuilds 2018-07-11 20:40:04 +02:00
hugo_sites_build_failures_test.go
hugo_sites_build_test.go Simplify .Site.GetPage etc. 2018-07-18 00:07:20 +02:00
hugo_sites_multihost_test.go Fix Resource output in multihost setups 2018-08-13 19:00:51 +02:00
hugo_themes_test.go
language_content_dir_test.go Add optional lang as argument to rel/relref 2018-07-18 00:07:20 +02:00
media.go
menu.go
menu_test.go
minify_publisher_test.go Add support for minification of final output 2018-08-06 19:58:41 +02:00
multilingual.go
orderedMap.go
orderedMap_test.go
page.go hugolib: Fix "borrow content from another language" issue 2018-07-23 20:12:41 +02:00
page_bundler.go
page_bundler_capture.go
page_bundler_capture_test.go resource/scss: Add IncludePaths config option 2018-07-20 17:50:44 +02:00
page_bundler_handlers.go Fix Resource output in multihost setups 2018-08-13 19:00:51 +02:00
page_bundler_test.go resource/scss: Add IncludePaths config option 2018-07-20 17:50:44 +02:00
page_collections.go Fix image cache eviction for sites with subdir in baseURL 2018-07-29 14:26:45 +02:00
page_collections_test.go Enable test case fixed by commit 501543d4 2018-07-19 20:40:50 +02:00
page_output.go
page_paths.go
page_paths_test.go
page_permalink_test.go
page_resource.go
page_taxonomy_test.go
page_test.go hugolib: Fix GitInfo when multiple content dirs 2018-08-11 19:51:19 +02:00
page_time_integration_test.go
page_without_content.go
pageCache.go
pageCache_test.go
pageGroup.go
pageGroup_test.go
pages_language_merge.go hugolib: Allow untyped nil to be merged in lang.Merge 2018-07-21 11:41:23 +02:00
pages_language_merge_test.go hugolib: Allow untyped nil to be merged in lang.Merge 2018-07-21 11:41:23 +02:00
pages_related.go
pages_related_test.go
pageSort.go
pageSort_test.go
pagesPrevNext.go
pagesPrevNext_test.go
pagination.go
pagination_test.go
path_separators_test.go
permalinker.go
permalinks.go
permalinks_test.go
prune_resources.go
resource_chain_test.go Add support for minification of final output 2018-08-06 19:58:41 +02:00
robotstxt_test.go
rss_test.go
shortcode.go Add optional lang as argument to rel/relref 2018-07-18 00:07:20 +02:00
shortcode_test.go Add configurable ref/relref error handling and notFoundURL 2018-07-19 14:32:43 +02:00
shortcodeparser.go
shortcodeparser_test.go
site.go Add support for minification of final output 2018-08-06 19:58:41 +02:00
site_benchmark_test.go
site_output.go
site_output_test.go Simplify .Site.GetPage etc. 2018-07-18 00:07:20 +02:00
site_render.go Add support for minification of final output 2018-08-06 19:58:41 +02:00
site_sections.go Add Page.FirstSection 2018-07-23 20:20:19 +02:00
site_sections_test.go hugolib: Fix .Site.GetPage regression 2018-07-24 11:37:59 +02:00
site_stats_test.go
site_test.go Increase refLinker test coverage 2018-07-20 07:02:41 +02:00
site_url_test.go Simplify .Site.GetPage etc. 2018-07-18 00:07:20 +02:00
siteJSONEncode_test.go
sitemap.go
sitemap_test.go
taxonomy.go
taxonomy_test.go Simplify .Site.GetPage etc. 2018-07-18 00:07:20 +02:00
template_engines_test.go
template_test.go
testhelpers_test.go Fix Resource output in multihost setups 2018-08-13 19:00:51 +02:00
translations.go