Skip to content

Handling drafts #96

Answered by daveaglick
TechWatching asked this question in Q&A
Discussion options

You must be logged in to vote

This is a great question! Folks have come up with a few way of doing this. The most common (probably because it was supported back in Wyam) is to set Published to a future date:

Published: 1/1/9999

That will cause the post to be excluded from the build and then you can clear or set the Published value when you're ready to post.

Another approach is to set Excluded which is new to Statiq Web. By default, Excluded looks at Published to determine if the document should be excluded. But you can configure it to something else. For example, if you want Excluded to look for a Draft front matter value instead you can set the following in a _directory.yaml file:

Excluded: => Draft

Alternatively, …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by TechWatching
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants