Last active
November 29, 2017 16:48
-
-
Save sskylar/18c8fbe39b8c9eaf4437915434e2562f to your computer and use it in GitHub Desktop.
Output posts JSON feed using Jekyll / Siteleaf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
--- | |
[ | |
{% for post in site.posts limit:10 %} | |
{ | |
"title": {{ post.title | jsonify }}, | |
"url": {{ post.url | jsonify }} | |
} | |
{% unless forloop.last %},{% endunless %} | |
{% endfor %} | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment