I was about to deploy my site with the latest blog post this morning and found Hugo broken. Or, my Hugo
config.toml is broken. It depends on how you want to look at it.
hugo deploy and bam! I see an internal template error.
ERROR render of "taxonomy" failed: template: _internal/_default/rss.xml:3:9: executing "_internal/_default/rss.xml" at <site>: can't evaluate field email in type string
pacman, the package manager on Arch Linux, I received an update for Hugo yesterday.
The error message indicated that the built-in
rss.xml template is trying to use a field named email.
So I looked up the
_default/rss.xml file on GitHub.
On line 3, Hugo is interpolating the field
params.author is a string, my name, not an object.
I noticed a contributor to the project already added a fix for this to the Hugo repository since then. But the version I have installed on my computer does not have the fix. It has the bug.
To work around this issue, I had to update the
config.toml file to have an object for the
comments powered by Disqus