mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-15 20:44:01 +02:00
commands: Load config before creating the filesystem
To allow publishDir to be set in config file.
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user