Landing page redered as expected, post itself isn't

I run hugo for several years now and it suddenly stopped working.
Today I created a new blog post in content/posts/2025/RaspberryPi-Wallboard/index.md

I run hugo and get the expected build output

Start building sites … 
hugo v0.147.9+extended+withdeploy linux/amd64 BuildDate=unknown


                  │ EN  
──────────────────┼─────
 Pages            │ 302
 Paginator pages  │  10
 Non-page files   │ 109
 Static files     │  16
 Processed images │  21
 Aliases          │   2
 Cleaned          │   0 

Total in 847 ms

On the landing page I see the title and the ferst few sentences of the post as expected, but if I click the title, i get a 404.
I clearly see that the directory and the HTML does not exist.

If I run hugo -d tmp I get a folder structure with all the static files (images) but no html file.

I expected an error but instead I just get a broken version.

Unfortunately I can’t say what version I ran when it worked the last time, now I run v0.147.9

the template system has changed in 0.146. see: New template system in Hugo v0.146.0

so I would try with 0.145.0.

and if that does not work, you will have to show more details. as usual sharing your repo is the simplest approach then.

I found out that it is related to the theme I use!
If I use ananke as shown in the quickstart, it works.

The theme is one I adpated years ago and can be found here: GitHub - Bouni/hugo-theme-salix: A hugo them based on hugo-theme-mini

Maybe you can easily spot the problem in there :sweat_smile:

I try to compare the folders and files between the themes to figure out whats the issue

The fix is easy. Just remove this file:

It is emtpy anyway…

But do read this if you want to know why it existed. Hint: it had something to do with themes being able to target the .Type ‘page’ through the templating structure. This is no longer possible, so it is related to this possible bug/breaking change.

1 Like

Perfect, that did the trick :partying_face:

1 Like

This was resolved a few hours ago.

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.