question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Enhancement: Automatically mark post in a folder as drafts

See original GitHub issue

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"
    }
  ],
...

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
TwoPizza9621536commented, May 6, 2022

Yes. and you can still use the draft field to publish/unpublish content in Jekyll. (Correction: the draft field does not work in the _posts folder) Here is a link on as on how it handles drafts. https://jekyllrb.com/docs/posts/#drafts

0reactions
estruyfcommented, May 25, 2022

Will be released in v7.3.0

Read more comments on GitHub >

github_iconTop Results From Across the Web

Automatically mark all messages as read in Drafts folder
The problem here of course is, that one cannot run filters automatically after one sends an email but after one receives an email....
Read more >
Outlook 2016 will not save drafts - TechNet - Microsoft
I noticed this problem back in 2016 but was too busy to report this. When I create emails and save them they don't...
Read more >
Message Draft - Canvas Community
2) A Drafts folder (a la Outlook) for partially complete CANVAS messages to reside until they are either finished & sent OR deleted...
Read more >
Multiple (iterations) copies of draft messages are saved in the ...
Expected Results: Only one copy of the draft message at all times, and once it's been sent it's expunged.
Read more >
Folders in Drafts - ThoughtAsylum
In this post I'm going to explain a little about these folders and what they actually contain in regards to your Drafts.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found