Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2018-07-31 21:04:36 +0300
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2018-08-01 00:33:04 +0300
commit6b02f5c0f4e0ba1730aebc5a590a111548233bd5 (patch)
tree13eda738080f73db33040eeb2b7103c552434a29 /resource
parent88e447c449608523d87c517396bde31a62f392b6 (diff)
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 'resource')
-rw-r--r--resource/resource.go8
1 files changed, 0 insertions, 8 deletions
diff --git a/resource/resource.go b/resource/resource.go
index 718d4d303..aedc7c22b 100644
--- a/resource/resource.go
+++ b/resource/resource.go
@@ -366,14 +366,6 @@ func (r *Spec) newResourceForFs(sourceFs afero.Fs, fd ResourceSourceDescriptor)
}
}
- if fd.URLBase == "" {
- fd.URLBase = r.GetURLLanguageBasePath()
- }
-
- if fd.TargetPathBase == "" {
- fd.TargetPathBase = r.GetTargetLanguageBasePath()
- }
-
if fd.RelTargetFilename == "" {
fd.RelTargetFilename = fd.Filename()
}