testing a new approach
README.md
posts/--
|--1-title.md
|--2-title.md
pages/--
|--index.md
|--1-title.md
|--2-title.md
index.html # Just gets pages/index.md content
The numbers are here to order posts and pages. Title will be used to make the links for now, but maybe we'll move on to some yaml info in the posts themselves if it's memory and network efficient (going through raw.github.com)
- Get README url :
curl -i -H "Accept: application/json" -H "Content-Type: application/json" -X GET https://api.github.com/repos/uinelj/sitev2/readme
- Get posts :
curl -i -H "Accept: application/json" -H "Content-Type: application/json" -X GET https://api.github.com/repos/uinelj/sitev2/contents/posts
- Content type for markdown
- Use base64 to save requests