layout: uglify
{
"lastBuildDate": "{{ site.time | date_to_rfc822 }}", "generator": "Jekyll v{{ jekyll.version }}", "posts": [ {% assign counter = 0 %} {% for post in site.posts %} {% unless post.hidden %} {% assign counter = counter | plus: 1 %} {% unless counter > 3 %} { "url": "{{ post.url | prepend: site.baseurl | prepend: site.url }}", "title": {{ post.title | jsonify }}, "pubDate": "{{ post.date | date_to_rfc822 }}", {% if post.description %} "description": {{ post.description | jsonify }}, {% endif %} "author": { {% if site.authors[post.author].name %} {% assign author=site.authors[post.author] %} {% endif %} {% if author.gravatar %} "gravatar": "{{ author.gravatar }}", "name": "{{ author.name }}" {% else %} "gravatar": "{{ site.gravatar }}", "name": "elementary" {% endif %} }, {% if post.image %} {% assign prefix = post.image | slice: 0, 4 %} {% if prefix == "http" %} {% assign image = post.image %} {% else %} {% assign image = post.image | prepend: site.baseurl | prepend: site.url %} {% endif %} "image": "{{ image }}", {% else %} "excerpt": "{{ post.excerpt | strip_html | truncatewords: 40 | jsonify }}", {% endif %} {% assign words = post.content | strip_html | number_of_words %} "read_time": "{{ words | divided_by: 200 | plus: 1 }} min read" } {% unless counter >= 3 %},{% endunless %} {% endunless %} {% endunless %} {% endfor %} ]
}