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>2019-07-31 11:31:26 +0300
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2019-07-31 13:10:05 +0300
commitd7c233afee6a16b1947f60b7e5450e40612997bb (patch)
tree91c87d17642655308ab9806e5afcb9b77415541f /modules
parent45ee8a7a52213bf394c7f41a72be78084ddc789a (diff)
commands: Add "hugo config mounts" command
This prints the effective file mounts in a project. Fixes #6144
Diffstat (limited to 'modules')
-rw-r--r--modules/collect.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/collect.go b/modules/collect.go
index 808353608..9a18f5579 100644
--- a/modules/collect.go
+++ b/modules/collect.go
@@ -478,8 +478,8 @@ func (c *collector) collect() {
return
}
- // Append the project module at the tail.
- c.modules = append(c.modules, projectMod)
+ // Add the project mod on top.
+ c.modules = append(Modules{projectMod}, c.modules...)
}