mirror of
https://github.com/cotes2020/jekyll-theme-chirpy.git
synced 2025-06-07 16:17:50 +00:00

- Use a common post-snippet for search results to avoid line break issues - Reduce Jekyll include files to speed up the build - Remove outdated key from search.json
21 lines
511 B
JSON
21 lines
511 B
JSON
---
|
|
layout: compress
|
|
swcache: true
|
|
---
|
|
|
|
[
|
|
{% for post in site.posts %}
|
|
{%- capture description -%}
|
|
{% include post-description.html %}
|
|
{%- endcapture -%}
|
|
{
|
|
"title": {{ post.title | jsonify }},
|
|
"url": {{ post.url | relative_url | jsonify }},
|
|
"categories": {{ post.categories | join: ', ' | jsonify }},
|
|
"tags": {{ post.tags | join: ', ' | jsonify }},
|
|
"date": "{{ post.date }}",
|
|
"content": "{{ description }}"
|
|
}{% unless forloop.last %},{% endunless %}
|
|
{% endfor %}
|
|
]
|