mirror of
https://github.com/peter-tanner/peter-tanner.github.io.git
synced 2024-11-30 20:10:18 +08:00
21 lines
597 B
JSON
21 lines
597 B
JSON
|
---
|
||
|
layout: compress
|
||
|
swcache: true
|
||
|
---
|
||
|
|
||
|
[
|
||
|
{% for post in site.posts %}
|
||
|
{
|
||
|
"title": {{ post.title | jsonify }},
|
||
|
"url": {{ post.url | relative_url | jsonify }},
|
||
|
"categories": {{ post.categories | join: ', ' | jsonify }},
|
||
|
"tags": {{ post.tags | join: ', ' | jsonify }},
|
||
|
"date": "{{ post.date }}",
|
||
|
{% include no-linenos.html content=post.content %}
|
||
|
{% assign _content = content | strip_html | strip_newlines %}
|
||
|
"snippet": {{ _content | truncate: 200 | jsonify }},
|
||
|
"content": {{ _content | jsonify }}
|
||
|
}{% unless forloop.last %},{% endunless %}
|
||
|
{% endfor %}
|
||
|
]
|