Blog Not To Render When Date is Later #10487
Replies: 1 comment 1 reply
-
You can use front matter:
You can also use the v3.1 https://docusaurus.io/blog/releases/3.1#parsefrontmatter-hook Now keep in mind that Docusaurus is a static site generator. Your blog post will not magically appear once time passes, and if your blog post is now today/yesterday, you'll probably need to rebuild your site to ensure Docusaurus generates the appropriate static content for the new blog post. IMHO it's better to be explicit and use |
Beta Was this translation helpful? Give feedback.
-
Hey Devs,
I'm currently working on my blog blog.brycemcwhirter.com and I was curious if there was any existing functionality within docusaurus to not render a blog post if the date comes after the current date?
Thanks! :)
Beta Was this translation helpful? Give feedback.
All reactions