clarify baseurl usage
This commit is contained in:
		
							parent
							
								
									47e9c978bf
								
							
						
					
					
						commit
						f8e8160358
					
				| 
						 | 
				
			
			@ -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.
 | 
			
		||||
		Loading…
	
		Reference in New Issue