Help to understand issue with Hugo 113

Hi all,
I’m using Hugo on macOS with two blogs, I normally use Homebrew. I use the theme mini. Yesterday, when running hugo server, I noticed the following errors:

Start building sites …
hugo v0.113.0-085c1b3d614e23d218ebf9daad909deaa2390c9a darwin/arm64 BuildDate=2023-06-05T15:04:51Z VendorInfo=gohugoio
ERROR 2023/06/14 08:33:31 render of "page" failed: "/Users/scaglio/Gitea/godsip-club/themes/mini/layouts/_default/baseof.html:11:7": execute of template failed: template: _default/single.html:11:7: executing "_default/single.html" at <partial "navigation.html" .>: error calling partial: "/Users/scaglio/Gitea/godsip-club/themes/mini/layouts/partials/navigation.html:15:35": execute of template failed: template: partials/navigation.html:15:35: executing "partials/navigation.html" at <.Site.RSSLink>: can't evaluate field RSSLink in type page.Site
ERROR 2023/06/14 08:33:31 render of "page" failed: "/Users/scaglio/Gitea/godsip-club/themes/mini/layouts/_default/baseof.html:11:7": execute of template failed: template: _default/single.html:11:7: executing "_default/single.html" at <partial "navigation.html" .>: error calling partial: "/Users/scaglio/Gitea/godsip-club/themes/mini/layouts/partials/navigation.html:15:35": execute of template failed: template: partials/navigation.html:15:35: executing "partials/navigation.html" at <.Site.RSSLink>: can't evaluate field RSSLink in type page.Site
ERROR 2023/06/14 08:33:31 render of "page" failed: "/Users/scaglio/Gitea/godsip-club/themes/mini/layouts/_default/baseof.html:11:7": execute of template failed: template: _default/single.html:11:7: executing "_default/single.html" at <partial "navigation.html" .>: error calling partial: "/Users/scaglio/Gitea/godsip-club/themes/mini/layouts/partials/navigation.html:15:35": execute of template failed: template: partials/navigation.html:15:35: executing "partials/navigation.html" at <.Site.RSSLink>: can't evaluate field RSSLink in type page.Site
ERROR 2023/06/14 08:33:31 render of "page" failed: "/Users/scaglio/Gitea/godsip-club/themes/mini/layouts/_default/baseof.html:11:7": execute of template failed: template: _default/single.html:11:7: executing "_default/single.html" at <partial "navigation.html" .>: error calling partial: "/Users/scaglio/Gitea/godsip-club/themes/mini/layouts/partials/navigation.html:15:35": execute of template failed: template: partials/navigation.html:15:35: executing "partials/navigation.html" at <.Site.RSSLink>: can't evaluate field RSSLink in type page.Site
Built in 49 ms
Error: error building site: render: failed to render pages: render of "page" failed: "/Users/scaglio/Gitea/godsip-club/themes/mini/layouts/_default/baseof.html:11:7": execute of template failed: template: _default/single.html:11:7: executing "_default/single.html" at <partial "navigation.html" .>: error calling partial: "/Users/scaglio/Gitea/godsip-club/themes/mini/layouts/partials/navigation.html:15:35": execute of template failed: template: partials/navigation.html:15:35: executing "partials/navigation.html" at <.Site.RSSLink>: can't evaluate field RSSLink in type page.Site

I tried to figure out the error, if it may be related to RSS, but then I finally decided to try to disable RSS completely: In the file “config.yaml”, I changed the parameter “enableRSS” to “false”, and the errors changed into these:

Start building sites …
hugo v0.113.0-085c1b3d614e23d218ebf9daad909deaa2390c9a darwin/arm64 BuildDate=2023-06-05T15:04:51Z VendorInfo=gohugoio
ERROR 2023/06/14 08:34:31 render of "page" failed: "/Users/scaglio/Gitea/godsip-club/themes/mini/layouts/_default/baseof.html:17:7": execute of template failed: template: _default/single.html:17:7: executing "_default/single.html" at <partial "footer.html" .>: error calling partial: "/Users/scaglio/Gitea/godsip-club/themes/mini/layouts/partials/footer.html:3:11": execute of template failed: template: partials/footer.html:3:11: executing "partials/footer.html" at <partial "social.html" .>: error calling partial: execute of template failed: template: partials/social.html:6:11: executing "partials/social.html" at <partial $svg (dict "fill" "#f640c1" "width" 28 "height" 28)>: error calling partial: partial "svgs/_merge.svg" not found
ERROR 2023/06/14 08:34:31 render of "page" failed: "/Users/scaglio/Gitea/godsip-club/themes/mini/layouts/_default/baseof.html:17:7": execute of template failed: template: _default/single.html:17:7: executing "_default/single.html" at <partial "footer.html" .>: error calling partial: "/Users/scaglio/Gitea/godsip-club/themes/mini/layouts/partials/footer.html:3:11": execute of template failed: template: partials/footer.html:3:11: executing "partials/footer.html" at <partial "social.html" .>: error calling partial: execute of template failed: template: partials/social.html:6:11: executing "partials/social.html" at <partial $svg (dict "fill" "#f640c1" "width" 28 "height" 28)>: error calling partial: partial "svgs/_merge.svg" not found
ERROR 2023/06/14 08:34:31 render of "page" failed: "/Users/scaglio/Gitea/godsip-club/themes/mini/layouts/_default/baseof.html:17:7": execute of template failed: template: _default/single.html:17:7: executing "_default/single.html" at <partial "footer.html" .>: error calling partial: "/Users/scaglio/Gitea/godsip-club/themes/mini/layouts/partials/footer.html:3:11": execute of template failed: template: partials/footer.html:3:11: executing "partials/footer.html" at <partial "social.html" .>: error calling partial: execute of template failed: template: partials/social.html:6:11: executing "partials/social.html" at <partial $svg (dict "fill" "#f640c1" "width" 28 "height" 28)>: error calling partial: partial "svgs/_merge.svg" not found
ERROR 2023/06/14 08:34:31 render of "page" failed: "/Users/scaglio/Gitea/godsip-club/themes/mini/layouts/_default/baseof.html:17:7": execute of template failed: template: _default/single.html:17:7: executing "_default/single.html" at <partial "footer.html" .>: error calling partial: "/Users/scaglio/Gitea/godsip-club/themes/mini/layouts/partials/footer.html:3:11": execute of template failed: template: partials/footer.html:3:11: executing "partials/footer.html" at <partial "social.html" .>: error calling partial: execute of template failed: template: partials/social.html:6:11: executing "partials/social.html" at <partial $svg (dict "fill" "#f640c1" "width" 28 "height" 28)>: error calling partial: partial "svgs/_merge.svg" not found
Built in 58 ms
Error: error building site: render: failed to render pages: render of "page" failed: "/Users/scaglio/Gitea/godsip-club/themes/mini/layouts/_default/baseof.html:17:7": execute of template failed: template: _default/single.html:17:7: executing "_default/single.html" at <partial "footer.html" .>: error calling partial: "/Users/scaglio/Gitea/godsip-club/themes/mini/layouts/partials/footer.html:3:11": execute of template failed: template: partials/footer.html:3:11: executing "partials/footer.html" at <partial "social.html" .>: error calling partial: execute of template failed: template: partials/social.html:6:11: executing "partials/social.html" at <partial $svg (dict "fill" "#f640c1" "width" 28 "height" 28)>: error calling partial: partial "svgs/_merge.svg" not found

I installed manually different Hugo releases on the computer, and made some tests. Last major release working is v0.111. v0.112 already returns the errors.

I have no idea what is that file “svgs/_merge.svg”.
If it can be helpful, the repository is hosted here: scaglio/godsip.club: Hugo source for https://godsip.club - godsip.club - Gitea
The only change I made is that, on my computer I renamed /themes/mini/i18n/en.yaml to /themes/mini/i18n/en-US.yaml, but it is not online.

Can you help me understand the issue?

Thank you!

OK, this was a mistake from me. I tried to cover all bases, but I missed one. We have had these RSSLink methods spread around on both site and page (the latter is deprecated and should show a proper warning).

The recommended way to link to your RSS feed(s) is described here:

If you want to link to your “site’s RSS feed”, use the home page as starting point:

{{ with site.Home.OutputFormats.Get "rss" -}}
    {{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink site.Home.Title | safeHTML }}
{{ end -}}
2 Likes

Thank you very much, this solves the RSS issue! :+1:

But the other errors related to svg still appear:

# hugo.0.113.0 server -v
Start building sites …
hugo v0.113.0-085c1b3d614e23d218ebf9daad909deaa2390c9a darwin/arm64 BuildDate=2023-06-05T15:04:51Z VendorInfo=gohugoio
INFO 2023/06/14 14:54:44 syncing static files to /
INFO 2023/06/14 14:54:44 process in 0 ms
INFO 2023/06/14 14:54:44 assemble in 2 ms
ERROR 2023/06/14 14:54:44 render of "page" failed: "/Users/scaglio/Gitea/godsip-club/themes/mini/layouts/_default/baseof.html:17:7": execute of template failed: template: _default/single.html:17:7: executing "_default/single.html" at <partial "footer.html" .>: error calling partial: "/Users/scaglio/Gitea/godsip-club/themes/mini/layouts/partials/footer.html:3:11": execute of template failed: template: partials/footer.html:3:11: executing "partials/footer.html" at <partial "social.html" .>: error calling partial: execute of template failed: template: partials/social.html:6:11: executing "partials/social.html" at <partial $svg (dict "fill" "#f640c1" "width" 28 "height" 28)>: error calling partial: partial "svgs/_merge.svg" not found
ERROR 2023/06/14 14:54:44 render of "page" failed: "/Users/scaglio/Gitea/godsip-club/themes/mini/layouts/_default/baseof.html:17:7": execute of template failed: template: _default/single.html:17:7: executing "_default/single.html" at <partial "footer.html" .>: error calling partial: "/Users/scaglio/Gitea/godsip-club/themes/mini/layouts/partials/footer.html:3:11": execute of template failed: template: partials/footer.html:3:11: executing "partials/footer.html" at <partial "social.html" .>: error calling partial: execute of template failed: template: partials/social.html:6:11: executing "partials/social.html" at <partial $svg (dict "fill" "#f640c1" "width" 28 "height" 28)>: error calling partial: partial "svgs/_merge.svg" not found
ERROR 2023/06/14 14:54:44 render of "page" failed: "/Users/scaglio/Gitea/godsip-club/themes/mini/layouts/_default/baseof.html:17:7": execute of template failed: template: _default/single.html:17:7: executing "_default/single.html" at <partial "footer.html" .>: error calling partial: "/Users/scaglio/Gitea/godsip-club/themes/mini/layouts/partials/footer.html:3:11": execute of template failed: template: partials/footer.html:3:11: executing "partials/footer.html" at <partial "social.html" .>: error calling partial: execute of template failed: template: partials/social.html:6:11: executing "partials/social.html" at <partial $svg (dict "fill" "#f640c1" "width" 28 "height" 28)>: error calling partial: partial "svgs/_merge.svg" not found
ERROR 2023/06/14 14:54:44 render of "page" failed: "/Users/scaglio/Gitea/godsip-club/themes/mini/layouts/_default/baseof.html:17:7": execute of template failed: template: _default/single.html:17:7: executing "_default/single.html" at <partial "footer.html" .>: error calling partial: "/Users/scaglio/Gitea/godsip-club/themes/mini/layouts/partials/footer.html:3:11": execute of template failed: template: partials/footer.html:3:11: executing "partials/footer.html" at <partial "social.html" .>: error calling partial: execute of template failed: template: partials/social.html:6:11: executing "partials/social.html" at <partial $svg (dict "fill" "#f640c1" "width" 28 "height" 28)>: error calling partial: partial "svgs/_merge.svg" not found
INFO 2023/06/14 14:54:44 render in 18 ms
INFO 2023/06/14 14:54:44 postProcess in 0 ms
Built in 47 ms
Error: error building site: render: failed to render pages: render of "page" failed: "/Users/scaglio/Gitea/godsip-club/themes/mini/layouts/_default/baseof.html:17:7": execute of template failed: template: _default/single.html:17:7: executing "_default/single.html" at <partial "footer.html" .>: error calling partial: "/Users/scaglio/Gitea/godsip-club/themes/mini/layouts/partials/footer.html:3:11": execute of template failed: template: partials/footer.html:3:11: executing "partials/footer.html" at <partial "social.html" .>: error calling partial: execute of template failed: template: partials/social.html:6:11: executing "partials/social.html" at <partial $svg (dict "fill" "#f640c1" "width" 28 "height" 28)>: error calling partial: partial "svgs/_merge.svg" not found

With v 0.111.0 it works, but with 0.112.0 it still gives these errors. The file “svgs/_merge.svg” does not exist.
Any ideas?

Yea, that’s another of my … bugs. Which is fixed in a new Hugo release coming out tomorrow. I guess you could work around it by skipping any social key named _merge, or you could just wait and pull in the upcoming Hugo version.

No problem and no hurry, I’ll wait patiently for the release :slight_smile: In the worst case, I can use the old version to build the site.
Anyway, thank you for your work and your effort! :pray:

1 Like

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