-
-
Notifications
You must be signed in to change notification settings - Fork 7.7k
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
hugo-coder theme no longer builds on 0.144.0 - "interface conversion: interface {} is nil, not []uint8" #13416
Comments
I have the same build error over at https://github.com/mabster/mabster.github.io |
It's worth noting that I tried removing the reference to ".Summary" from the meta-tags.html file, and a subsequent build threw the same "interface conversion" error when it hit a reference to ".Content" in a different file. Both of those are, I believe, built into Hugo rather than anything specific to the theme. |
Yes, this is a bug. @mabster On your site, the problem is triggered by the line below in
The |
@jmooring Wow! Thanks for that. Weird though - the H1 does have content - it's the |
@mabster None of the HTML elements have inner content. The icon rendering is a CSS thing. |
@simonhollingshead How do I reproduce the problem with your site? I did this:
And got this:
I using the branch named "patched". |
You would need to build the exampleSite, not the root, using the theme. This is the theme's example site, which I just use to get a regen of the SCSS into CSS. |
@simonhollingshead Your content has the same characteristics as @mabster. You have four heading elements without content. Search your content for This is a bug, and we'll fix it, but for now remove the empty headings. |
Failing test: func TestIssue13416(t *testing.T) {
t.Parallel()
files := `
-- hugo.toml --
disableKinds = ['page','rss','section','sitemap','taxonomy','term']
-- layouts/index.html --
{{ .Content }}
-- layouts/_default/_markup/render-heading.html --
-- content/_index.md --
---
title: home
---
#
`
b := hugolib.Test(t, files)
b.AssertFileExists("public/index.html", true)
} The heading render hook must be present to trigger the error. What you put inside of the render hook template is irreleveant. If you remove the empty Markown heading ( |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
The following code is present in the hugo-coder template at head:
<meta name="description" content="{{ .Description | default (.Summary | default .Site.Params.description ) }}">
In version
hugo v0.143.1-0270364a347b2ece97e0321782b21904db515ecc+extended linux/amd64 BuildDate=2025-02-04T08:57:38Z VendorInfo=gohugoio
the hugo-coder exampleSite builds successfully. (https://github.com/simonhollingshead/hugo-coder/actions/runs/13362095239)In version
hugo v0.144.0-b289b17c433aa8ebf8c73ebbaf4bed973ac8e4d5+extended linux/amd64 BuildDate=2025-02-17T16:22:31Z VendorInfo=gohugoio
this now fails (https://github.com/simonhollingshead/hugo-coder/actions/runs/13382377851) with the errorI see nothing in the release notes indicating a breakage would be expected in this release, and this was not something that generated a warning in prior releases either. While I'm absolutely not ruling out the possibility that the code in the template is wrong, I was not expecting the permissiveness of the parser to handle it to change given the release notes as shown.
What version of Hugo are you using (
hugo version
)?hugo v0.144.0-b289b17c433aa8ebf8c73ebbaf4bed973ac8e4d5+extended linux/amd64 BuildDate=2025-02-17T16:22:31Z VendorInfo=gohugoio
Does this issue reproduce with the latest release?
This is the latest release. The breakage appears to have occurred between 0.143.1 and 0.144.0.
The text was updated successfully, but these errors were encountered: