From 5f9636bfb30a678031dce0e6c1e3b22196e8461b Mon Sep 17 00:00:00 2001 From: Daniel N <2color@users.noreply.github.com> Date: Mon, 6 Nov 2023 14:01:04 +0100 Subject: [PATCH] Render blog posts even if their date is in the future --- src/.vuepress/plugins/pageData.js | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/.vuepress/plugins/pageData.js b/src/.vuepress/plugins/pageData.js index 927786fe..7db6f85c 100644 --- a/src/.vuepress/plugins/pageData.js +++ b/src/.vuepress/plugins/pageData.js @@ -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)