Nonconformist Propaganda Machine

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

    0.5.0 • 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,
          }
        ]
      ]
    }

    Install

    npm i @celesta/vuepress-plugin-post-filter

    DownloadsWeekly Downloads

    13

    Version

    0.5.0

    License

    MIT

    Unpacked Size

    6.35 kB

    Total Files

    12

    Last publish

    Collaborators

    • nsznsznjsz