title: GitHub pages and relative paths
body: <p>I have created a <code>gh-pages</code> branch for a project that I am working on at GitHub.</p>
  
  <p>I use Sublime text to author the website locally and my problem is that when this is pushed to GitHub, all the  links to javascrips, images, and css files are invalid.</p>
  
  <p>For instance, I have this in my head section.</p>
  
  <pre><code>&lt;link href="assets/css/common.css" rel="stylesheet"&gt;
  </code></pre>
  
  <p>This works great locally, but it does not work from GitHub as the links are not resolved using the repository name as part of the URL.</p>
  
  <p>It asks for: </p>
  
  <pre><code>http://[user].github.io/assets/css/common.css
  </code></pre>
  
  <p>when it should have been asking for: </p>
  
  <pre><code>http://[user].github.io/[repo]/assets/css/common.css.
  </code></pre>
  
  <p>I could of course put the repo name as part of the URL, but that would prevent my site to work locally during development. </p>
  
  <p>Any idea how to deal with this?</p>