title: How do I use Jekyll in a subdirectory?
body: <p>Jekyll assumes that the generated site will be served from the root directory, and subsequently all of the links are absolute beginning with "/". I'd like to serve out a blog from a subdirectory, i.e., <code>http://www.example.com/~user/blog</code>.</p>
  
  <p>Setting <code>permalink</code> variable (<a href="http://jekyllrb.com/docs/permalinks/" rel="noreferrer">http://jekyllrb.com/docs/permalinks/</a>) would be a partial fix, but doesn't address other things such as css files.</p>
  
  <p>I'll be glad for any pointers.</p>