Fails on Hugo 139
Test steps
- brew install hugo
- git close --recurse-submodules https://gitlab.eclipse.org/eclipsefdn/it/webdev/hugo-eclipsefdn-website-boilerplate.git
- git submodule --update --remote
vasiligulevich@Vasilis-MacBook-Pro rcptt % hugo server
Watching for changes in /Users/vasiligulevich/git/rcptt/{content,layouts,static,themes}
Watching for config changes in /Users/vasiligulevich/git/rcptt/config.toml, /Users/vasiligulevich/git/rcptt/themes/hugo-solstice-theme/config.toml
Start building sites …
hugo v0.139.3+extended+withdeploy darwin/arm64 BuildDate=2024-11-29T15:36:56Z VendorInfo=brew
ERROR deprecated: .Site.Author was deprecated in Hugo v0.124.0 and will be removed in Hugo 0.140.0. Implement taxonomy 'author' or use .Site.Params.Author instead.
ERROR render of "404" failed: "/Users/vasiligulevich/git/rcptt/themes/hugo-solstice-theme/layouts/_default/baseof.html:16:25": execute of template failed: template: 404.html:16:25: executing "head" at <partial "head.html" .>: error calling partial: "/Users/vasiligulevich/git/rcptt/themes/hugo-solstice-theme/layouts/partials/head.html:85:4": execute of template failed: template: partials/head.html:85:4: executing "partials/head.html" at <partial "google_tag_manager.html" .>: error calling partial: execute of template failed: html/template:partials/google_tag_manager.html:10:12: no such template "_internal/google_analytics_async.html"
ERROR render of "taxonomy" failed: "/Users/vasiligulevich/git/rcptt/themes/hugo-solstice-theme/layouts/_default/baseof.html:16:25": execute of template failed: template: _default/list.html:16:25: executing "head" at <partial "head.html" .>: error calling partial: "/Users/vasiligulevich/git/rcptt/themes/hugo-solstice-theme/layouts/partials/head.html:85:4": execute of template failed: template: partials/head.html:
Workaround for Google Analytics
The only workaround to .Site.Author
is to use the Docker image for CI:
docker run --rm -p1313:1313 -ti --mount type=bind,source=/Users/vasiligulevich/git/rcptt,destination=/mnt --workdir /mnt eclipsecbi/hugo_extended:0.110.0 hugo server --bind 0.0.0.0
Edited by Vasili Gulevich