web/assets/js/data/search.json
Cotes Chung 0eb7efa7f5
fix(search): avoid missing spaces between paragraphs in search results ()
- 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
2025-01-20 21:27:18 +08:00

20 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 %}
]