vuepress-plugin-post-filter
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

Vuepress-plugin-post-filter

Post filter plugin for vuepress-next

Usage

npm install vuepress-plugin-post-filter
# OR
yarn add vuepress-plugin-post-filter
// .vueprss/config.ts
export default {
  plugins: ["vuepress-plugin-post-filter"]
}

Set frontmatter in your draft:

---
draft: true
# OR
published: false
---

Now, your draft will not publish when building.

Config

// .vueprss/config.ts
export default {
  plugins: [
    [
      "vuepress-plugin-post-filter",
      {
        frontmatter: {
          draft: true,
          published: false
        },
        prodOnly: true,
      }
    ]
  ]
}

Package Sidebar

Install

npm i vuepress-plugin-post-filter

Weekly Downloads

1

Version

1.0.2

License

MIT

Unpacked Size

5.97 kB

Total Files

15

Last publish

Collaborators

  • nsznsznjsz