summaryrefslogtreecommitdiffstats
path: root/hugolib/config.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2019-07-31 10:31:26 +0200
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2019-07-31 12:10:05 +0200
commitd7c233afee6a16b1947f60b7e5450e40612997bb (patch)
tree91c87d17642655308ab9806e5afcb9b77415541f /hugolib/config.go
parent45ee8a7a52213bf394c7f41a72be78084ddc789a (diff)
commands: Add "hugo config mounts" command
This prints the effective file mounts in a project. Fixes #6144
Diffstat (limited to 'hugolib/config.go')
-rw-r--r--hugolib/config.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/hugolib/config.go b/hugolib/config.go
index 07a8d4100..8c2e44c10 100644
--- a/hugolib/config.go
+++ b/hugolib/config.go
@@ -217,7 +217,7 @@ func LoadConfig(d ConfigSourceDescriptor, doWithConfig ...func(cfg config.Provid
mods := m.ActiveModules
// Apply default project mounts.
- if err := modules.ApplyProjectConfigDefaults(v, mods[len(mods)-1]); err != nil {
+ if err := modules.ApplyProjectConfigDefaults(v, mods[0]); err != nil {
return err
}