Hide posts that have a post date in the future. This only runs on build and will require a rebuild to update
-
yarn add @brettanda/gridsome-plugin-scheduled-posts
-
npm install @brettanda/gridsome-plugin-scheduled-posts
You will have to make sure the the timeZoneOffset
is correct for your setup.
module.exports = {
plugins: [
{
use: "@brettanda/gridsome-plugin-scheduled-posts",
options: {
typeName: "Post",
timeZoneOffset: "-6"
}
}
]
};