(SOLVED) How do I add [module.mounts] to hugo.toml config in a theme?

I placed the [module.mounts] code into the hugo.toml config in theme directory.

my-hugo-projects/themes/my-theme/hugo.toml

[module]
    [[module.mounts]]
      source = "assets"
      target = "assets"

And it leaves error messages:

WARN  found no layout file for "html" for kind "taxonomy": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN  found no layout file for "html" for kind "page": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN  found no layout file for "html" for kind "home": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.

However, when I place that config in the hugo.toml at root, no problems arise. What could be the issue?

Please help, thankyou :slight_smile:

i just add:

[[module.mounts]]
source = "layouts"
target = "layouts"

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.