Why I get warnings?

Warnings about layouts for taxonomies? I don’t use those.

You should post the warnings to get an answer. And/Or a link to your repository.

WARN 2022/03/29 20:35:10 found no layout file for "HTML" for kind "taxonomy": u should create a template file which matches Hugo Layouts Lookup Rules for this combination.

After some search online, either of these solutions work:

  1. Create a taxonomy.html file inside layouts/defaults with this code {{ "<!-- just a regular comment to avoid taxonomy layout warnings -->" | safeHTML }}

  2. Add the following to configuration file:

    disableKinds = ["taxonomy"]
    ignoreErrors = ["error-disable-taxonomy"]
    

I use the 2nd.

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