Mysterious post titled "Posts" appeared

Edit: I’ve figured it out.

Removed the .Site before .Pages in list.html at:
{{ $paginator := .Paginate (where .Site.Pages "Section" "in" .Site.Params.mainSections) }}

Github -

Recently updated from Hugo 0.52 to 0.55.
Don’t believe I changed anything else.

All of a sudden I’m seeing a post with the title “Posts” and same date as my latest post in my list of posts.

Seems to only happen locally?

I believe this is the file that generates the list of posts?

Any advice is appreciated.

Try using .Site.RegularPages instead.

The Posts page you are getting is the section page /post/.


I will try this out soon. I have the same issue with “posts” items coming up in my archive ranges. Probably too because .Site.Pages goes through all pages in the section.

correct :slight_smile: - this did the trick.

1 Like

Thanks for this.
Read through the Page Variable docs and ended up using that, all good now.