Make _build list = 'never" unlist posts from taxonomy page collections too

Hello,

Recently, I rewrote an old blog post and published it again, but I wanted to:

  1. Still keep the old post published.
  2. But not listed anywhere (in none of the lists on home page, or section, or taxonomy, especially not in RSS or ATOM feeds for any of those).

So I used the _buildlist = never in that deprecated post’s front matter.

But then I was surprised to see that deprecated post show up in RSS feed aggregators.

Searching for this I ended up on Don't show a post in the posts tab - #11 by bep and that confirmed that this is a known behavior… that the list = 'never' does not affect taxonomy lists!

@bep Can you please make list = 'never' be truly never?

My actual use case is that I refreshed my Building Org Development version (2022) ❚ A Scripter's Notes post and moved the old post to Building Org Development version (2017) ❚ A Scripter's Notes with the _build list=never in its front matter.

But now feed aggregators like https://planet.emacslife.com/ are listing both new and old posts! That’s because they aggregate only the “Emacs” taxonomy posts from my blog.

I’ll add a workaround, a custom front matter to truly mark posts to be excluded from the feeds, but it would be great if list = 'never' simply excluded such posts from all page collections.

Thanks!


Update: I have added this workaround for now. If a post has unlisted = true in its front-matter, it’s not added to the ATOM feed.

Can you please stop mention my name, I read most posts as it is (at least the headlines), and I get plenty of notifications …

I’m pretty sure I have fixed this in a branch (the “million pages” branch) that has taken me a little too long to complete but is more or less the very next thing on my TODO list.

Can you please stop mention my name, I read most posts as it is (at least the headlines), and I get plenty of notifications …

Ok, will do that (looking at my post history, I do refrain from mentioning anyone. But I understand what you mean and won’t mention you).

Also, thanks! I’ll look forward to that fix.

2 Likes

Hi,

I’m using Hugo v0.120.3 and described issue still persists.

When I set “_build”: {“list”: “never”} to “never” or false in front matter, page is still displayed in related Taxonomy lists and is counted towards Term pages count (.Count from .Data.Terms.Alphabetical gives total number including such pages).

Can’t find mentioned here “million pages” branch. Were anyone able to workaround that (except removing taxonomy from the page in front matter) or there any plans for the fix?

Thanks in advance.

This is an open issue.

1 Like