1
0
mirror of https://github.com/cotes2020/jekyll-theme-chirpy.git synced 2025-12-24 16:43:15 +00:00

fix(search): restore full-text search for posts with description (#2557)

This commit is contained in:
Cotes
2025-10-20 02:24:40 +08:00
committed by GitHub
parent b3d7db3cda
commit 604528e3ce
6 changed files with 44 additions and 34 deletions

View File

@@ -11,7 +11,8 @@ swcache: true
"categories": {{ post.categories | join: ', ' | jsonify }},
"tags": {{ post.tags | join: ', ' | jsonify }},
"date": {{ post.date | jsonify }},
"content": {% include post-description.html json=true %}
{% capture content -%}{% include post-summary.html full_text=true %}{%- endcapture -%}
"content": {{ content | jsonify }}
}{% unless forloop.last %},{% endunless %}
{% endfor %}
]