@brettanda/gridsome-plugin-scheduled-posts

This plugin hides posts that have a post date in the future.

Usage no npm install needed!

<script type="module">
  import brettandaGridsomePluginScheduledPosts from 'https://cdn.skypack.dev/@brettanda/gridsome-plugin-scheduled-posts';
</script>

README

@brettanda/gridsome-plugin-scheduled-posts

GitHub license Twitter

Hide posts that have a post date in the future. This only runs on build and will require a rebuild to update

Install

  • yarn add @brettanda/gridsome-plugin-scheduled-posts

  • npm install @brettanda/gridsome-plugin-scheduled-posts

Usage

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"
            }
        }
    ]
};