My side project this week was getting to know Hugo modules. As night approaches that failed
I read and implemented the suggestions in the following two posts:
And dug through the documentation.
And still, when running
hugo mod init in my site repo I get the following error:
❯ hugo mod init Error: from config: failed to resolve output format "REDIR" from site config
There is a stale/closed issue in the repo about this error message that explains nearly nothing and fizzled out.
My config.toml has it’s
theme part removed and the following new code:
[module] [[module.imports]] path = "github.com/davidsneighbour/dnb-hugo/packages/netlification" disabled = false [[module.imports.mounts]] target = "themes/dnb-netlification" [[module.imports]] path = "github.com/davidsneighbour/dnb-hugo/packages/shortcodes" disabled = false [[module.imports.mounts]] target = "themes/dnb-shortcodes" [[module.imports]] path = "github.com/davidsneighbour/dnb-garuda" disabled = false [[module.imports.mounts]] target = "themes/dnb-garuda"
The folders in the
path parts are initialized as modules.
Does anybody know what that error message above might mean, where it stems from?
My Go is at
go version go1.15.2 linux/amd64 and installed from snap, Hugo is installed via .deb file and
Hugo Static Site Generator v0.75.1-A4A7BAB7/extended linux/amd64 BuildDate: 2020-09-15T06:57:20Z