Closed arongergely closed 11 months ago
Hi @arongergely,
That is the most breaking change, if I have ever seen one. I am checking new Hugo release and performing necessary changes.
Thank you for bringing this to my notice.
Thank you for the proposed solution. That was an easy fix. Your fix is pushed to main.
I have to now check if it will it break anything further down the line.
Thanks a lot for the quick fix!
That is the most breaking change, if I have ever seen one.
Oh yeah. Rant incoming
hugo
's development is messy. It evolves in unexpected ways.snap
packages force update and can not be rolled back. Hugo set up via snap
is living on the edgehugo
+ snap
== pain
Don't do it. :smile:
Ubuntu's over-dependence on snap is the only reason I don't daily drive it. That doesn't mean I don't use any packaging formats (I use Appimages and Flatpaks)
However, it is always better to have up-to-date packages (Not like Arch, btw). It might alleviate any sudden changes down the road. All thanks to you for living on the edge
hugo v0.120.1 was rolled out yesterday and my Ubuntu snap package force-updated from v0.119.x.
Now I get the following errors when trying
hugo serve
:The problem
in v0.120.0 they deprecated
site.Social
in favor ofsite.Params.social
. Internal templates like_internal/opengraph.html
are now looking for parameters there. (see https://github.com/gohugoio/hugo/commit/4910312ee75a1c67fad68c259ad9576dca854c62) This collides with the definition in theme'shugo.toml
. (array of social media links)Internal templates do not expect an array, so we get the error above.
Proposed solution
Probably to change
[[params.social]]
entries inhugo.toml
to something else e.g.[[params.socialLinks]]
. The site builds fine when I change or remove said entries.