Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Render blog posts even if their date is in the future #642

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

2color
Copy link
Member

@2color 2color commented Nov 6, 2023

TL;DR

This PR ensures that blog posts with a frontmatter date in the future are rendered. This is important for when we have PRs with a future publish date that cannot be previewed.

@2color 2color requested a review from cwaring November 6, 2023 13:17
@cwaring
Copy link
Member

cwaring commented Nov 6, 2023

I would suggest adding this behind an ENV for staging rather than cutting out the feature entirely.

Another alternative is to use the current date for editing and then update to the future (intended) date as a last step before merging, that way you can stage posts in main and the CI will automatically redeploy on the required (future) publication date.

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.

2 participants