clarify baseurl usage

This commit is contained in:
Benjamin J. Balter 2013-04-15 11:56:46 -04:00
parent 47e9c978bf
commit f8e8160358
1 changed files with 6 additions and 4 deletions

View File

@ -62,7 +62,9 @@ and add a new markdown file to it. To preview your new post, simply run the
### Baseurl ### Baseurl
Often, you'll want the ability to run a Jekyll site in multiple places, such as 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 previewing locally before pushing to GitHub pages. Jekyll 1.0 makes that easier
the new `--baseurl` flag. Throughout your Jekyll site, simply prefix relative with the new `--baseurl` flag. Throughout your Jekyll site, simply prefix
url with `{{ site.baseurl }}` and Jekyll will swap in whatever you pass along relative urls with `{{ site.baseurl }}` and add the production `baseurl` to
ensuring your links remain true in both environments. your `_config.yml` file. When previewing locally, Jekyll will swap in whatever
you pass along via the `--baseurl` flag (most likely `/`), ensuring your links
remain true in both environments.