1
0
mirror of https://github.com/cotes2020/jekyll-theme-chirpy.git synced 2026-01-23 07:11:39 +00:00
Files
jekyll-theme-chirpy/assets/js/data/search.json
Cotes Chung 7615d72e93 fix: escape special JSON characters in search results (#2481)
Also restore full-text search
2025-07-26 20:22:30 +08:00

18 lines
448 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 | jsonify }},
"content": {% include post-description.html json=true %}
}{% unless forloop.last %},{% endunless %}
{% endfor %}
]