Original from http://jekyllsnippets.com/excluding-jsonify-your-site/
Create a new site.json
and add the above code (site.json.rb)
Original from http://jekyllsnippets.com/excluding-jsonify-your-site/
Create a new site.json
and add the above code (site.json.rb)
--- | |
layout: null | |
--- | |
[ | |
{% for post in site.posts %} | |
{ | |
"title" : "{{ post.title }}", | |
"url" : "{{ post.url }}", | |
"date" : "{{ post.date | date: "%B %d, %Y" }}", | |
"content" : "{{ post.excerpt | remove: '<p>' | remove: '</p>' | strip_newlines }}" | |
} {% if forloop.last %}{% else %},{% endif %} | |
{% endfor %} | |
] |