From 3bc912c3c2a2ad5a4acf37052ad2533daaafae63 Mon Sep 17 00:00:00 2001 From: Parker Moore Date: Tue, 9 Jul 2013 23:55:18 +0200 Subject: [PATCH 1/4] Really crappy docs page for drafts --- site/docs/drafts.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 site/docs/drafts.md diff --git a/site/docs/drafts.md b/site/docs/drafts.md new file mode 100644 index 00000000..50483595 --- /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 your drafts, simply run `jekyll serve` with the `--drafts` +switch. The same goes for `jekyll build`. Each will be assigned the value of `Time.now` +for its date, and thus you will see them generated as the latest posts. + From 61a9988ef3ac8a84be9f38f0c6d4119a3ee6e90d Mon Sep 17 00:00:00 2001 From: Parker Moore Date: Tue, 9 Jul 2013 23:55:27 +0200 Subject: [PATCH 2/4] link to really crappy docs page --- site/_includes/docs_contents.html | 3 +++ site/_includes/docs_contents_mobile.html | 1 + 2 files changed, 4 insertions(+) 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 @@ + From 9fe42fe09c39692d4cc734f64ec9bd778a9763a0 Mon Sep 17 00:00:00 2001 From: Parker Moore Date: Tue, 9 Jul 2013 23:55:37 +0200 Subject: [PATCH 3/4] Add _drafts to site structure page --- site/docs/structure.md | 3 +++ 1 file changed, 3 insertions(+) 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 From a5b6522ee2488143af6a26c1b5ac0678f12c8e11 Mon Sep 17 00:00:00 2001 From: Matt Rogers Date: Wed, 10 Jul 2013 23:34:48 -0500 Subject: [PATCH 4/4] Make the text around generating the site more clear Thanks to @jpiasetz for the suggestion! --- site/docs/drafts.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/site/docs/drafts.md b/site/docs/drafts.md index 50483595..e6455674 100644 --- a/site/docs/drafts.md +++ b/site/docs/drafts.md @@ -14,7 +14,7 @@ first draft: | |-- a-draft-post.md {% endhighlight %} -To preview your site with your drafts, simply run `jekyll serve` with the `--drafts` -switch. The same goes for `jekyll build`. Each will be assigned the value of `Time.now` +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.