Create APIs from Jekyll page data.
Follow Jekyll's instructions for installing Jekyll plugins. The Jekyll::API plugin is available from the jekyll-api gem.
For example, the Jekyll::API plugin will generate a /people/jill/data.json file
{
"title": "Jill"
}
from the Jekyll page data in /people/jill.md.
---
title: Jill
---
Hi, my name is {{ page.title }}
If you set permalink: pretty in _config.yml, the resulting HTTP endpoints will be:
/people/jill//people/jill/data.jsonFor post it will generate a /people/jill/post.json file with complete post data.
git checkout -b my-new-feature).git commit -am 'Add some feature').git push origin my-new-feature).