Skip to content

Hide future posts when a collection is used#425

Open
elichad wants to merge 2 commits intojekyll:masterfrom
elichad:hide-future-posts
Open

Hide future posts when a collection is used#425
elichad wants to merge 2 commits intojekyll:masterfrom
elichad:hide-future-posts

Conversation

@elichad
Copy link

@elichad elichad commented Jan 14, 2026

Currently, if building a feed for a collection (other than the default collection posts), posts with a future date are included in the feed.

Jekyll docs: https://jekyllrb.com/docs/collections/

Except for documents in hard-coded default collection posts, all documents in collections you create, are accessible via Liquid irrespective of their assigned date, if any, and therefore renderable.

This PR adds a few lines to skip a post in the feed if the post.date is in the future.

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.

1 participant