I was just trying to convert my site’s config.toml
to config.yml
where I have a simple Hugo Modules import from a local themes folder (there is no go.mod
file or anything like that).
This worked:
[module]
[[module.imports]]
path = "../../themes/theme-v2"
theme = "theme-v2"
However, this did not:
module:
imports:
- path: ../../themes/theme-v2
theme : theme-v2
I’m getting this error:
Error: module "theme-v2" not found; either add it as a Hugo Module or store it in [path/to/theme/folder].: module does not exist
Am I doing something wrong? or is this a bug?