Deprecation warning in exampleSite

This warning appears in my own theme’s exampleSite, but not in the main project. Any tips to find what file is affected?

$ hugo --theme ../.. --logLevel debug
Start building sites … 
hugo v0.158.0-f41be7959a44108641f1e081adf5c4be7fc1bb63 linux/amd64 BuildDate=2026-03-16T17:42:04Z VendorInfo=gohugoio

INFO  deprecated: .Site.Sites and .Page.Sites was deprecated in Hugo v0.156.0 and will be removed in a future release. Use hugo.Sites instead.

scan your layouts folder files for .Sites without the prefix.

the prefix could be also site, page, a variable or context . or $.

I did! Even grepped from the terminal. I cannot find anything. I think I will dismantle my exampleSite and try testing again. Coz running the command in my site root where the theme and examplesite resides returns nothing!

any other themes or modules imported as module in your example site?

if so hugo mod vendor them to get the sources and scan the _vendor folder, too.

and mounted folders have to be scanned, too if any

I ran the theme independently and turns out it was a partial that in the theme that I override with store. So, for this one project, it did not show up, but could have shown up in another that I use it.

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