diff --git a/site/_includes/docs_contents.html b/site/_includes/docs_contents.html index 6ed33431..909832f4 100644 --- a/site/_includes/docs_contents.html +++ b/site/_includes/docs_contents.html @@ -29,6 +29,9 @@
  • Writing posts
  • +
  • + Working with drafts +
  • Creating pages
  • diff --git a/site/_includes/docs_contents_mobile.html b/site/_includes/docs_contents_mobile.html index 05cbc85a..4d45a4d5 100644 --- a/site/_includes/docs_contents_mobile.html +++ b/site/_includes/docs_contents_mobile.html @@ -12,6 +12,7 @@ + diff --git a/site/docs/drafts.md b/site/docs/drafts.md new file mode 100644 index 00000000..e6455674 --- /dev/null +++ b/site/docs/drafts.md @@ -0,0 +1,20 @@ +--- +layout: docs +title: Working with drafts +permalink: /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](/docs/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 of `Time.now` +for its date, and thus you will see them generated as the latest posts. + diff --git a/site/docs/structure.md b/site/docs/structure.md index 887d1a00..98bbef3a 100644 --- a/site/docs/structure.md +++ b/site/docs/structure.md @@ -19,6 +19,9 @@ A basic Jekyll site usually looks something like this: {% highlight bash %} . ├── _config.yml +├── _drafts +| ├── begin-with-the-crazy-ideas.textile +| └── on-simplicity-in-technology.markdown ├── _includes | ├── footer.html | └── header.html