JSON Posts in Jekyll
While I don’t have a current use for it, I thought it would be cool to create a JSON API for Posts on this blog. Whatever I used had to work with Github Pages where my site is hosted, so using a gem is not an option.
After some searching I found a partial solution by digitaljhelms and used that idea of a file for Jekyll to process in order to generate the API.
Here is the code for my final solution, which is running at posts.json: