Drafts are pages that are not yet ready to be published or were intended to be accessible only for a limited time and are now expired. Pages that are drafts will not be rendered or be discoverable by other plugins from the index.
Any page can become a draft, and there are multiple ways to make a draft from any given page. The easiest way is just to set the page as a draft in its Front Matter:
You can also set a
publishDate or an
expiryDate in the pages Front Matter, which both take a date in the ISO-8601
date format (
YYYY-MM-DD) or datetime format (
Some plugins may set the page's publish or expiry date themselves based on some external criteria. An example is the Posts plugin, where posts include their publish date in the filename, instead of finding it in the post's Front Matter.
In some situations, you may wish to view your drafts during development. To do this, simply set the
true on the
render service in your