1 Commits

Author SHA1 Message Date
Daniel N
5f9636bfb3 Render blog posts even if their date is in the future 2023-11-06 14:01:04 +01:00

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)