All my old sites started to throw errors messages even true I did not make any changes apart from updating the theme. The error message in question is:
hugo server
Watching for changes in /Users/Shared/Work/Projects/6502Tutorial/Documents/{archetypes,assets,content,data,layouts,static,themes}
Watching for config changes in /Users/Shared/Work/Projects/6502Tutorial/Documents/hugo.toml, /Users/Shared/Work/Projects/6502Tutorial/Documents/themes/congo/config/_default, /Users/Shared/Work/Projects/6502Tutorial/Documents/go.mod
Start building sites …
hugo v0.122.0-b9a03bd59d5f71a529acb3e33f995e0ef332b3aa+extended darwin/amd64 BuildDate=2024-01-26T15:54:24Z VendorInfo=brew
WARN [CONGO] Theme parameter `author` block in `languages.xx.toml` has been renamed to `params.author`. Please update your site configuration.
ERROR render of "page" failed: "/Users/Shared/Work/Projects/6502Tutorial/Documents/themes/congo/layouts/_default/baseof.html:11:6": execute of template failed: template: _default/single.html:11:6: executing "_default/single.html" at <partial "head.html" .>: error calling partial: execute of template failed: template: _internal/opengraph.html:6:15: executing "_internal/opengraph.html" at <partial "_funcs/get-page-images" .>: error calling partial: execute of template failed: template: partials/_funcs/get-page-images.html:18:21: executing "partials/_funcs/get-page-images.html" at <first 1 .>: error calling first: can't iterate over maps.Params
Built in 148 ms
Error: error building site: render: failed to render pages: render of "page" failed: "/Users/Shared/Work/Projects/6502Tutorial/Documents/themes/congo/layouts/_default/baseof.html:11:6": execute of template failed: template: _default/single.html:11:6: executing "_default/single.html" at <partial "head.html" .>: error calling partial: execute of template failed: template: _internal/opengraph.html:6:15: executing "_internal/opengraph.html" at <partial "_funcs/get-page-images" .>: error calling partial: execute of template failed: template: partials/_funcs/get-page-images.html:18:21: executing "partials/_funcs/get-page-images.html" at <first 1 .>: error calling first: can't iterate over maps.Params
make: *** [run-hugo] Error 1
I guess something changed. But what? Yes, I have seen the warning but I was waiting for the theme to fix that and I don’t know if that has happened yet.
- I tried commenting out the author block
- I tried the theme dev branch instead of stable
- I tried the compost theme instead of congo. That only fixed the warning
- I found issue 12210 and tried to remove
[params.images]
Those did not improve the situation.
Since you always ask: https://git.code.sf.net/p/tutorial-6502/code, branch develop, directory Documents.