ipfs-blog icon indicating copy to clipboard operation
ipfs-blog copied to clipboard

Render blog posts even if their date is in the future

Open 2color opened this issue 1 year ago • 1 comments

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 avatar Nov 06 '23 13:11 2color

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.

cwaring avatar Nov 06 '23 19:11 cwaring