From 30859cd979c38d329d46bf6a44f71d79fe07bdb6 Mon Sep 17 00:00:00 2001 From: "Benjamin J. Balter" Date: Sun, 14 Apr 2013 13:27:14 -0400 Subject: [PATCH] First pass at baseurl documentation --- site/_posts/2012-07-01-upgrading.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/site/_posts/2012-07-01-upgrading.md b/site/_posts/2012-07-01-upgrading.md index bcb20204..99daafb6 100644 --- a/site/_posts/2012-07-01-upgrading.md +++ b/site/_posts/2012-07-01-upgrading.md @@ -53,11 +53,16 @@ new markdown file to it. To generate preview your new post, simply run the
Drafts don't have dates
-

Unlike posts, drafts don't have a date, since they havn't +

Unlike posts, drafts don't have a date, since they haven't been published yet. Rather than naming your draft something like `2013-07-01-my-draft-post.md`, simply name the file what you'd like your post to eventually be titled, here `my-draft-post.md`.

+### Baseurl -### Baseurl \ No newline at end of file +Often, you'll want the ability to run a Jekyll site in multiple places, such as +previewing locally before pushing to a server. Jekyll 1.0 makes that easier with +the new `--baseurl` flag. Throughout your Jekyll site, simply prefix relative +url with `{{ site.baseurl }}` and Jekyll will swap in whatever you pass along +ensuring your links remain true in both environments.