Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

building failure about mastodon.html #904

Open
zwyyy456 opened this issue Apr 15, 2024 · 1 comment
Open

building failure about mastodon.html #904

zwyyy456 opened this issue Apr 15, 2024 · 1 comment

Comments

@zwyyy456
Copy link

Describe the problem:

Today, I update the hugo-coder theme and then run hugo serve, then I meet building failure.

My last hugo-coder theme is c340320a, it works well, and there is nomastodon.html in that version.

the log is as follows:

❯ hugo serve        
Watching for changes in /Users/zwyyy/code/blog/coder_blogs/{archetypes,assets,content,data,i18n,layouts,static,themes}
Watching for config changes in /Users/zwyyy/code/blog/coder_blogs/config.toml, /Users/zwyyy/code/blog/coder_blogs/themes/coder/config.toml
Start building sites … 
hugo v0.124.1-db083b05f16c945fec04f745f0ca8640560cf1ec+extended darwin/arm64 BuildDate=2024-03-20T11:40:10Z VendorInfo=brew

ERROR render of "page" failed: "/Users/zwyyy/code/blog/coder_blogs/themes/coder/layouts/posts/single.html:48:11": execute of template failed: template: posts/single.html:48:11: executing "content" at <partial "posts/mastodon.html" .>: error calling partial: "/Users/zwyyy/code/blog/coder_blogs/themes/coder/layouts/partials/posts/mastodon.html:4:91": execute of template failed: template: partials/posts/mastodon.html:4:91: executing "partials/posts/mastodon.html" at <.host>: can't evaluate field host in type bool
Built in 504 ms
Error: error building site: render: failed to render pages: render of "page" failed: "/Users/zwyyy/code/blog/coder_blogs/themes/coder/layouts/posts/single.html:48:11": execute of template failed: template: posts/single.html:48:11: executing "content" at <partial "posts/mastodon.html" .>: error calling partial: "/Users/zwyyy/code/blog/coder_blogs/themes/coder/layouts/partials/posts/mastodon.html:4:91": execute of template failed: template: partials/posts/mastodon.html:4:91: executing "partials/posts/mastodon.html" at <.host>: can't evaluate field host in type bool
@zwyyy456
Copy link
Author

it seems that commits 60fdc75 cause the building failure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant