From b5437a49fbd43d13c4e64608f6663710f6f52e74 Mon Sep 17 00:00:00 2001 From: Santeri Paavolainen Date: Mon, 4 Nov 2013 19:10:25 +0200 Subject: [PATCH] Updated docs to match reality, where drafts are dated based on file modification time See https://github.com/mojombo/jekyll/blob/8e7b6bf5ff56e6bb8d0f1019c19b351f1d600e39/lib/jekyll/draft.rb#L28 -- source uses `File.mtime` on the draft file, not `Time.now` as the doc says. --- site/docs/drafts.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/site/docs/drafts.md b/site/docs/drafts.md index c921f2a5..959964d0 100644 --- a/site/docs/drafts.md +++ b/site/docs/drafts.md @@ -17,6 +17,5 @@ first draft: {% 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. - +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.