Files
jekyll/site/docs/drafts.md
Santeri Paavolainen b5437a49fb Updated docs to match reality, where drafts are dated based on file modification time
See 8e7b6bf5ff/lib/jekyll/draft.rb (L28) -- source uses `File.mtime` on the draft file, not `Time.now` as the doc says.
2013-11-04 19:10:25 +02:00

726 B

layout, title, prev_section, next_section, permalink
layout title prev_section next_section permalink
docs Working with drafts posts pages /docs/drafts/

Drafts are posts without a date. They're posts you're still working on and don't want to publish yet. To get up and running with drafts, create a _drafts folder in your site's root (as described in the site structure section) and create your first draft:

{% highlight text %} |-- _drafts/ | |-- a-draft-post.md {% endhighlight %}

To preview your site with drafts, simply run jekyll serve or jekyll build with the --drafts switch. Each will be assigned the value modification time of the draft file for its date, and thus you will see currently edited drafts as the latest posts.