Skip to content

Filter out hidden posts - #404

Open
bkoprucu wants to merge 1 commit into
jekyll:masterfrom
bkoprucu:skip-hidden-pages
Open

Filter out hidden posts#404
bkoprucu wants to merge 1 commit into
jekyll:masterfrom
bkoprucu:skip-hidden-pages

Conversation

@bkoprucu

Copy link
Copy Markdown

Jekyll doesn't list the posts with a front matter variable hidden: true or hidden: 1 in the paginator / posts listing page.

This change applies the same behavior to the generated feed.

@guilhermesimoes

Copy link
Copy Markdown
Contributor

Would be great to have this merged

@parkr parkr left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey, this would match the jekyll-paginate gem. There's also published: false. Jekyll's docs don't really describe when to use one vs the other. @mattr- Should we make this align with the pagination plugin?

For now, please update the README here to indicate that posts marked hidden are removed from the feed.

@mattr-

mattr- commented Apr 22, 2026

Copy link
Copy Markdown
Member

We should match the paginate gem so that things are consistent. I admin that I don't remember why we have published and hidden properties that seem to do the same thing. Something to investigate later.

@iBug

iBug commented Apr 23, 2026

Copy link
Copy Markdown

My understanding is that published allows a post to stay in the work tree while not being built at all (i.e. as if it doesn't exist, unless with --unpublished). hidden allows a post to be built while omitted from listings (i.e. pagination). This PR updates feeds to match the behavior of pagination, as both are generally considered listings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants