title: Can't get site.baseurl to work in jekyll
body: <p>I'm creating a GitHub project page with Jekyll.</p>
  
  <p>I've read the previous questions on this subject, as well as the <a href="http://jekyllrb.com/docs/github-pages/" rel="nofollow">Jekyll documentation here</a>.</p>
  
  <p>I've tried setting baseurl in <code>_config.yml</code> to both <code>/my-project</code> 
  and 
  <code>http://myaccount.github.io/my-project</code> while linking my CSS and js files like so:</p>
  
  <pre><code>&lt;script src="{{ site.baseurl }}/js/javascript.js"&gt;&lt;/script&gt;
  &lt;link href="{{ site.baseurl }}/css/style.css" rel="stylesheet"&gt;
  </code></pre>
  
  <p>When I run <code>jekyll --serve --baseurl ''</code> everything looks good on localhost. </p>
  
  <p>But when I push to github, all of my CSS and js files are 404ing; the links are getting turned into <code>http://css/style.css</code> and so on. </p>
  
  <p>What am I missing here?</p>
  
  <p>I'm also confused about the purpose of the <code>BASE_PATH</code> variable in <code>_config.yml</code>, as opposed to <code>baseurl</code>. </p>
  
  <p>I tried setting <code>BASE_PATH</code> and linking my files that way, but that didn't work either.</p>