HEIGE-PCloud / DoIt

A clean, elegant and advanced blog theme for Hugo.
https://hugodoit.pages.dev
MIT License
790 stars 195 forks source link

[BUG] Error building site after updating #1376

Open veronicageek opened 4 hours ago

veronicageek commented 4 hours ago

Describe the bug 描述你遇到的错误

I've updated to Hugo v.0.136.5 and updated the DoIt theme to the latest. I had to also update some parts of the theme to hugo.IsMultilingual. When trying to build the site by running hugo, I get the following error:

Error: error building site: render: failed to render pages: render of "page" failed: "{USERNAME}\{FOLDER}\{MY-REPO}\layouts\_default\baseof.html:57:8": execute of template failed: template: _default/single.html:57:8: executing "_default/single.html" at <partial "assets.html" .>: error calling partial: "C:\Users\{USERNAME}\{FOLDER}\{MY-REPO}\layouts\partials\assets.html:207:25": execute of template failed: template: partials/assets.html:207:25: executing "partials/assets.html" at <"lib/pjax/pjax.min.js.map">: **nil pointer evaluating resource.Resource.RelPermalink**

I'm unable to deploy using Github Actions because of the Multilingual issue, and when I change the values, I get the error above.

Expected behavior 期待的行为

The site builds correctly.

Screenshots 屏幕截图

No response

Build Environment 构建环境

Preview Environment 预览环境

No response

Additional Information 补充信息

No response

HEIGE-PCloud commented 3 hours ago

Are you sure you're on the latest commit for DoIt? I believe I addressed the hugo.IsMultilingual issue awhile ago https://github.com/HEIGE-PCloud/DoIt/commit/38df51c80f2214ff990eeed1f37d2e3fe15a5a8a

And the example site builds and deploys just fine https://github.com/HEIGE-PCloud/DoIt/actions/runs/11535798363/job/32111250697