Flutter-Bounty-Hunters / static_shock

A static site generator for Dart.
MIT License
59 stars 5 forks source link

[Shock] - Add draft mode for pages #71

Closed matthew-carroll closed 3 months ago

matthew-carroll commented 3 months ago

Sometimes a page is drafted but it's not ready for release. Perhaps the article is in the process of being written, or perhaps it can't be published until a certain date. This shouldn't prevent authors from committing those files.

Add an ability for a file to mark itself as a "draft" and avoid being published in the website build.

Add a CLI option to build in draft mode so that the author can see a draft article before it's published.

Implement the draft mode using plugin controls. Add new controls if needed.