title: Jekyll github pages site ignoring .css
body: <p>At one point this worked. However, i left the project in what I thought was working condition and then come back to find that the formatting is all broken. The repo is available <a href="https://github.com/DaveRGP/Pokemon_FieldStudies" rel="nofollow noreferrer">here</a> and the site hosted <a href="http://davergp.github.io/Pokemon_FieldStudies/" rel="nofollow noreferrer">here.</a></p>
  
  <p>I've checked my <code>_layouts/</code> folder and it has the <code>/</code> seemingly correctly set as per the answer <a href="https://stackoverflow.com/questions/32253472/jekyll-posts-not-displaying-formatting-correctly-on-github-pages-rest-of-site-i">here.</a></p>
  
  <p>Similarly I've set my base URL as this is a project page as per <a href="https://stackoverflow.com/questions/30906087/jekyll-deployment-on-github-pages-doesnt-format-correctly-no-styling?rq=1">this question.</a></p>
  
  <p>Possibly something went wrong when I pushed the RMD file in, however I've tried to wind back and push that as the version of the repo, but I didn't see any changes (maybe I did this badly, I'm very new to github, and pretty novice at git).</p>
  
  <p>How can I get my formatting back? The original structure was made using this tutorial on <a href="http://jmcglone.com/guides/github-pages/" rel="nofollow noreferrer">jekyll and ghpages.</a></p>
  
  <p>FINAL SOLUTION:</p>
  
  <p>After inspecting and testing both answers from LarsW and David_Jacquel, the final fix is as follows:</p>
  
  <ol>
  <li>_config.yml - include <code>baseurl: /Pokemon_FieldStudies</code></li>
  <li>default.html - include <code>&lt;link rel="stylesheet" type="text/css" href="{{ site.baseurl }}/css/main.css"&gt;</code></li>
  </ol>