# Landing page redered as expected, post itself isn't

**URL:** <https://discourse.gohugo.io/t/landing-page-redered-as-expected-post-itself-isnt/55206>\
**Category:** support\
**Created:** [July 2, 2025, 11:04am UTC](https://discourse.gohugo.io/t/landing-page-redered-as-expected-post-itself-isnt/55206 "2025-07-02T11:04:49Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bouni2025](https://avatars.discourse-cdn.com/v4/letter/b/bb73d2/32.png) [@Bouni2025](https://discourse.gohugo.io/u/Bouni2025)\
**Post date:** [July 2, 2025, 11:04am UTC](https://discourse.gohugo.io/t/landing-page-redered-as-expected-post-itself-isnt/55206/1 "2025-07-02T11:04:50Z")

</div>

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

```auto
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

---

<div class="post-metadata">

**Author:** ![irkode](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/irkode/32/26135_2.png) [@irkode](https://discourse.gohugo.io/u/irkode)\
**Post date:** [July 2, 2025, 11:35am UTC](https://discourse.gohugo.io/t/landing-page-redered-as-expected-post-itself-isnt/55206/2 "2025-07-02T11:35:53Z")

</div>

the template system has changed in 0.146. see: [New template system in Hugo v0.146.0](https://gohugo.io/templates/new-templatesystem-overview/#article)

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.

---

<div class="post-metadata">

**Author:** ![Bouni2025](https://avatars.discourse-cdn.com/v4/letter/b/bb73d2/32.png) [@Bouni2025](https://discourse.gohugo.io/u/Bouni2025)\
**Post date:** [July 2, 2025, 11:56am UTC](https://discourse.gohugo.io/t/landing-page-redered-as-expected-post-itself-isnt/55206/3 "2025-07-02T11:56:27Z")

</div>

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](https://github.com/Bouni/hugo-theme-salix)

Maybe you can easily spot the problem in there 😅

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

---

<div class="post-metadata">

**Author:** ![jhvanderschee](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/jhvanderschee/32/18241_2.png) [@jhvanderschee](https://discourse.gohugo.io/u/jhvanderschee)\
**Post date:** [July 2, 2025, 12:08pm UTC](https://discourse.gohugo.io/t/landing-page-redered-as-expected-post-itself-isnt/55206/4 "2025-07-02T12:08:04Z")

</div>

The fix is easy. Just remove this file:

> <https://github.com/Bouni/hugo-theme-salix/blob/main/layouts/_default/page.html>

It is emtpy anyway…

But do read [this](https://discourse.gohugo.io/t/possible-bug-single-layout-for-pages-in-v0-147-9/55179/23) 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.

---

<div class="post-metadata">

**Author:** ![Bouni2025](https://avatars.discourse-cdn.com/v4/letter/b/bb73d2/32.png) [@Bouni2025](https://discourse.gohugo.io/u/Bouni2025)\
**Post date:** [July 2, 2025, 12:11pm UTC](https://discourse.gohugo.io/t/landing-page-redered-as-expected-post-itself-isnt/55206/5 "2025-07-02T12:11:28Z")

</div>

Perfect, that did the trick 🥳

---

<div class="post-metadata">

**Author:** ![jmooring](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/jmooring/32/4214_2.png) [@jmooring](https://discourse.gohugo.io/u/jmooring)\
**Post date:** [July 2, 2025, 1:03pm UTC](https://discourse.gohugo.io/t/landing-page-redered-as-expected-post-itself-isnt/55206/6 "2025-07-02T13:03:56Z")

</div>

> [@jhvanderschee](#):
>
> This is no longer possible, so it is related to this possible bug/breaking change.

This was resolved a few hours ago.

---

<div class="post-metadata">

**Author:** ![system](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/system/32/1_2.png) [@system](https://discourse.gohugo.io/u/system)\
**Post date:** [July 4, 2025, 1:03pm UTC](https://discourse.gohugo.io/t/landing-page-redered-as-expected-post-itself-isnt/55206/7 "2025-07-04T13:03:59Z")

</div>

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