Skip to content

Enhancement: Automatically mark post in a folder as drafts #333

@wushenrong

Description

@wushenrong

Is your feature request related to a problem? Please describe.
In Jekyll, there is a folder you can make called _drafts which automatically tells Jekyll that these posts should not
be processed without setting the drafts argument. In Front Matter, it does not automatically make posts in _drafts
as drafts, you have to set draft: true in the front matter which is redundant.

Describe the solution you'd like
In the configuration file, either add a drafts folder configuration or in frontMatter.content.pageFolders have a
setting called draft or something equivalent.

Additional context
The second solution presented here:

...
"frontMatter.content.pageFolders": [
    /* Directory of all of the draft/unpublished posts*/
    {
      "title": "drafts",
      "path": "[[workspace]]/_drafts",
      "drafts": true
    },
    /* Directory of all of the published post */
    {
      "title": "_posts",
      "path": "[[workspace]]/_posts"
    }
  ],
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions