mirror of
https://github.com/jekyll/jekyll.git
synced 2026-01-31 01:38:24 -05:00
clarify baseurl usage
This commit is contained in:
@@ -62,7 +62,9 @@ and add a new markdown file to it. To preview your new post, simply run the
|
||||
### Baseurl
|
||||
|
||||
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.
|
||||
previewing locally before pushing to GitHub pages. Jekyll 1.0 makes that easier
|
||||
with the new `--baseurl` flag. Throughout your Jekyll site, simply prefix
|
||||
relative urls with `{{ site.baseurl }}` and add the production `baseurl` to
|
||||
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.
|
||||
Reference in New Issue
Block a user