aboutsummaryrefslogtreecommitdiffhomepage
path: root/modules
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2023-05-18 13:29:33 +0200
committerBjørn Erik Pedersen <[email protected]>2023-05-18 15:38:25 +0200
commit3f00f47535d7b3eef829cda12296ba665dd50a4c (patch)
tree7967f7f68f3551cc1e58f739672cb74964097029 /modules
parent834b3d7e41d42a97df58804e3e6ed4d5ed596efc (diff)
downloadhugo-3f00f47535d7b3eef829cda12296ba665dd50a4c.tar.gz
hugo-3f00f47535d7b3eef829cda12296ba665dd50a4c.zip
commands: Load config before creating the filesystem
To allow publishDir to be set in config file.
Diffstat (limited to 'modules')
-rw-r--r--modules/collect.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/collect.go b/modules/collect.go
index c69e7e7ee..3340b3327 100644
--- a/modules/collect.go
+++ b/modules/collect.go
@@ -347,7 +347,7 @@ func (c *collector) addAndRecurse(owner *moduleAdapter, disabled bool) error {
moduleConfig := owner.Config()
if owner.projectMod {
if err := c.applyMounts(Import{}, owner); err != nil {
- return fmt.Errorf("failed to apply mounts for project module: %w", err)
+ return fmt.Errorf("failed to apply mounts for project: %w", err)
}
}