Site does not render, no errors

I am using the ananke theme. I was getting the error

resources.ToCSS was deprecated

Since I though most likely the error was in an outdated theme, I upgraded with:

hugo mod get -u

Now hugo runs without errors, but the site is rendered as a white page.

I got the following warnings:

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 "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 "section": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.

What may I be missing?

Can you guys point me to the way to troubleshoot this?

EDIT: hugo version:
hugo v0.141.0-e7bd51698e5c3778a86003018702b1a7dcb9559a+extended linux/amd64 BuildDate=2025-01-16T13:11:18Z VendorInfo=snap:0.141.0

the there are some files missing from the theme.

have a look at Use Hugo Modules | Hugo theres a clean and tidy command.

did you call hugo mod init. check your import statement

easiest to help would be to share your repo


as a brute force approach you could

  • delete all cached hugo modules manually.
    find the folder using hugo config | grep cachedir and remove everything inside
    :zap: will affect all your hugo projects → they will download their modules on next build
  • delete go.mod and go.sum
  • remove the theme setting/import from hugo.toml (you may not have both settings)
  • call hugo mod init
  • add module import to hugo.toml
  • call hugo
  • The errors should be gone (hopefully)
1 Like