Render blog posts even if their date is in the future

This commit is contained in:
Daniel N
2023-11-06 14:01:04 +01:00
parent 0b4d7aa9de
commit 5f9636bfb3

View File

@@ -10,16 +10,6 @@ function shouldBeHidden(frontmatter) {
shouldHide = shouldHide || frontmatter.sitemap.exclude
}
// scheduled posts
// see auto-publishing of scheduled posts here: https://github.com/ipfs/ipfs-blog/issues/147
if (
!shouldHide &&
frontmatter.permalink && // permalink is unique to posts
frontmatter.date
) {
shouldHide = shouldHide || isDateInFuture(frontmatter.date)
}
// scheduled links (path is unique to links)
if (!shouldHide && frontmatter.path && frontmatter.publish_date) {
shouldHide = shouldHide || isDateInFuture(frontmatter.publish_date)