209058b84a
Passing parameters to includes
17 lines
523 B
JSON
17 lines
523 B
JSON
---
|
|
layout: compress
|
|
---
|
|
|
|
[
|
|
{% for post in site.posts %}
|
|
{
|
|
"title": "{{ post.title | escape }}",
|
|
"url": "{{ site.baseurl }}{{ post.url }}",
|
|
"categories": "{{ post.categories | join: ', '}}",
|
|
"tags": "{{ post.tags | join: ', ' }}",
|
|
"date": "{{ post.date }}",
|
|
{% include no-linenos.html content=post.content %}
|
|
"snippet": "{{ content | strip_html | strip_newlines | remove_chars | escape | truncate: 300 | replace: '\', '\\\\' }}"
|
|
}{% unless forloop.last %},{% endunless %}
|
|
{% endfor %}
|
|
]
|