title: Site root: Github Pages vs. `jekyll --server`
body: <p>When I run <code>jekyll --server</code> my site is available at <code>http://localhost:4000/</code>, but when I deploy to GitHub Project Pages, it's available at <code>http://username.github.com/projectname/</code>.</p>
  
  <p>This means that I cannot use absolute URLs when referring to stylesheets and other resources. Relative URLs break when the same layout is used by e.g. <code>index.html</code> and <code>2012/01/01/happy-new-year.html</code>. What is the-accepted/a-good way of adding stylesheets and other resources to a GitHub Project Pages repository?</p>
  
  <p><em>Cross-posted to <a href="https://github.com/mojombo/jekyll/issues/760" rel="noreferrer">GitHub Issues</a>.</em></p>