title: Serve JSON Data from Github Pages
body: <p>I have a repository on github which contains a number of csv, json, yml data files in the root directory of the repository.</p>
  
  <p>How do I get it to serve those files using Github Pages?</p>
  
  <p>So for eg: when I go to <code>http://username.github.io/reponame/</code> followed by</p>
  
  <ul>
  <li><code>/posts</code> - serve the contents of the <strong>posts.json</strong> file</li>
  <li><code>/users</code> - serve the contents of the <strong>users.json</strong> file</li>
  <li><code>/comments</code> - serve the contents of the <strong>comments.json</strong> file</li>
  <li><code>/posts.csv</code> - serve the contents of the <strong>posts.csv</strong> file</li>
  </ul>