cloudwego / cloudwego.github.io

Website for CloudWeGo
https://www.cloudwego.io
Apache License 2.0
127 stars 244 forks source link

Build error using hugo 0.129.0 (or any relative new version) #1108

Closed 3DRX closed 1 month ago

3DRX commented 1 month ago

What happened? Describe the problem that occurred.

> cloudwego@0.0.1 dev
> hugo server -D

ERROR deprecated: config: languages.zh.description: custom params on the language top level was deprecated in Hugo v0.112.0 and wi
ll be removed in Hugo 0.130.0. Put the value below [languages.zh.params]. See https://gohugo.io/content-management/multilingual/#c
hanges-in-hugo-01120
ERROR deprecated: config: languages.en.description: custom params on the language top level was deprecated in Hugo v0.112.0 and wi
ll be removed in Hugo 0.130.0. Put the value below [languages.en.params]. See https://gohugo.io/content-management/multilingual/#c
hanges-in-hugo-01120
Watching for changes in /Users/kjy/Documents/cloudwego.github.io/{assets,content,i18n,layouts,package.json,postcss.config.js,stati
c}
Watching for config changes in /Users/kjy/Documents/cloudwego.github.io/config.toml
Start building sites …
hugo v0.129.0+extended darwin/amd64 BuildDate=2024-07-17T13:29:16Z VendorInfo=brew

ERROR render of "section" failed: "/Users/kjy/Documents/cloudwego.github.io/layouts/_default/baseof.html:4:7": execute of template
 failed: template: _default/list.html:4:7: executing "_default/list.html" at <partial "head.html" .>: error calling partial: execu
te of template failed: html/template:partials/head.html:43:12: no such template "_internal/google_analytics_async.html"
ERROR render of "page" failed: "/Users/kjy/Documents/cloudwego.github.io/layouts/blog/baseof.html:4:7": execute of template failed
: template: blog/single.html:4:7: executing "blog/single.html" at <partial "head.html" .>: error calling partial: execute of templ
ate failed: html/template:partials/head.html:43:12: no such template "_internal/google_analytics_async.html"
Built in 1130 ms
Error: error building site: render: failed to render pages: render of "404" failed: "/Users/kjy/Documents/cloudwego.github.io/layo
uts/_default/baseof.html:4:7": execute of template failed: template: 404.html:4:7: executing "404.html" at <partial "head.html" .>
: error calling partial: execute of template failed: html/template:partials/head.html:43:12: no such template "_internal/google_an
alytics_async.html"

What did you expect would happen? Describe the expected result/output.

Successful build, e.g. with hugo 0.111.3.

What browser, OS, and platform were you using when you encountered the problem? Include the browser version if you know it as well.

hugo 0.129.0 I believe this is not platform related (unable to build)

Additional context: anything else you can think about that would be helpful.

Even if we won't benefit much from migrating and upgrading to the latest version of hugo, the README should be updated since it does not contain any information about hugo version.