aboutsummaryrefslogtreecommitdiffhomepage
path: root/langs
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2018-07-31 20:04:36 +0200
committerBjørn Erik Pedersen <[email protected]>2018-07-31 23:33:04 +0200
commit6b02f5c0f4e0ba1730aebc5a590a111548233bd5 (patch)
tree13eda738080f73db33040eeb2b7103c552434a29 /langs
parent88e447c449608523d87c517396bde31a62f392b6 (diff)
downloadhugo-6b02f5c0f4e0ba1730aebc5a590a111548233bd5.tar.gz
hugo-6b02f5c0f4e0ba1730aebc5a590a111548233bd5.zip
Make resources fetched via resources.Get and similar language agnostic
With the newly released Hugo Pipes, resources fetched and processed via `resources.Get` and similar was published to the relevant language sub folder when in multilingual mode. The thought behind that was maximum flexibility with support for `assetDir` per language. In practice this was a bad idea: * You get duplication of identical content, with added processing time * You end up with path issues that seem to be hard to find a way around (`@fa-font-path` is one example) This commit changes that. Now there is only one `assetDir` and if you, as one example, need to generate a CSS per langugage, you need to set the paths yourself. Fixes #5017
Diffstat (limited to 'langs')
-rw-r--r--langs/language.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/langs/language.go b/langs/language.go
index 5eb09e10c..7d77df4e3 100644
--- a/langs/language.go
+++ b/langs/language.go
@@ -33,6 +33,8 @@ var globalOnlySettings = map[string]bool{
strings.ToLower("defaultContentLanguageInSubdir"): true,
strings.ToLower("defaultContentLanguage"): true,
strings.ToLower("multilingual"): true,
+ strings.ToLower("assetDir"): true,
+ strings.ToLower("resourceDir"): true,
}
// Language manages specific-language configuration.