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:
Diffstat (limited to 'modules/config.go')
-rw-r--r--modules/config.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/config.go b/modules/config.go
index 122fd6c55..163bc7049 100644
--- a/modules/config.go
+++ b/modules/config.go
@@ -171,6 +171,9 @@ func ApplyProjectConfigDefaults(cfg config.Provider, mod Module) error {
mounts = append(mounts, Mount{Source: dirKey.component, Target: dirKey.component})
}
+ // Prepend the mounts from configuration.
+ mounts = append(moda.mounts, mounts...)
+
// Remove duplicates
seen := make(map[string]bool)
tmp := mounts[:0]