Errors with zen theme

Hi,
I wanted to try the zen theme (@frjoGitHub - frjo/hugo-theme-zen: A fast and clean Hugo base theme with css-grid and Hugo pipes support.), but I got some error running hugo server:

Watching for changes in /Users/blanc/pageweb/hugo-blog/{archetypes,assets,content,data,layouts,static,themes}
Watching for config changes in /Users/blanc/pageweb/hugo-blog/hugo.toml, /Users/blanc/pageweb/hugo-blog/themes/hugo-theme-zen/hugo.yaml
Start building sites …
hugo v0.133.1+extended darwin/arm64 BuildDate=2024-08-26T13:58:46Z VendorInfo=brew

ERROR render of “taxonomy” failed: “/Users/blanc/pageweb/hugo-blog/themes/hugo-theme-zen/layouts/_default/rss.xml:23:13”: execute of template failed: template: _default/rss.xml:23:13: executing “_default/rss.xml” at : can’t evaluate field email in type string
ERROR render of “section” failed: “/Users/blanc/pageweb/hugo-blog/themes/hugo-theme-zen/layouts/_default/rss.xml:23:13”: execute of template failed: template: _default/rss.xml:23:13: executing “_default/rss.xml” at : can’t evaluate field email in type string
Built in 34 ms
Error: error building site: render: failed to render pages: render of “home” failed: “/Users/blanc/pageweb/hugo-blog/themes/hugo-theme-zen/layouts/_default/rss.xml:23:13”: execute of template failed: template: _default/rss.xml:23:13: executing “_default/rss.xml” at : can’t evaluate field email in type string

I don’t know what to do…
Many thanks in advance,
Guillaume

Guess you will have to check your config file. Looks like you are missing the author field in site params.

Have a look at the example here: hugo-theme-zen/exampleSite/hugo.yaml at main · frjo/hugo-theme-zen · GitHub

Thanks. I removed the author line in the config file and it worked.

I see now that params author can be both a map or a string, the Zen theme assumes a map.

Do many people make it a string? I always have it as a map.

I’m not sure what most people do, but the embedded RSS template handles it either way:

That make the most sense to me too.

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