17 lines
495 B
JSON
17 lines
495 B
JSON
|
---
|
||
|
---
|
||
|
|
||
|
[
|
||
|
{% for post in site.posts %}
|
||
|
{
|
||
|
"id": {{ post.id | replace: '/', '-' | jsonify }},
|
||
|
"title": {{ post.title | jsonify }},
|
||
|
"author": {{ post.author | jsonify }},
|
||
|
"tags": [{% for tag in post.tags%}{{ tag | jsonify }}{% unless forloop.last %}, {% endunless %}{% endfor %}],
|
||
|
"url": {{ post.url | jsonify }},
|
||
|
"date": {{ post.date | date: '%Y-%m-%d' | jsonify }},
|
||
|
"content": {{ post.content | strip_html | strip_newlines | jsonify }}
|
||
|
}{% unless forloop.last %}, {% endunless %}
|
||
|
{% endfor %}
|
||
|
]
|