mirror of
https://github.com/cotes2020/jekyll-theme-chirpy.git
synced 2025-06-07 16:17:50 +00:00
perf: truncate post content for search results
This commit is contained in:
parent
1c330f403c
commit
647eea8dbd
@ -12,7 +12,7 @@ swcache: true
|
||||
"tags": {{ post.tags | join: ', ' | jsonify }},
|
||||
"date": "{{ post.date }}",
|
||||
{% include no-linenos.html content=post.content %}
|
||||
"snippet": {{ content | strip_html | strip_newlines | jsonify }}
|
||||
"snippet": {{ content | strip_html | strip_newlines | truncate: 200 | jsonify }}
|
||||
}{% unless forloop.last %},{% endunless %}
|
||||
{% endfor %}
|
||||
]
|
||||
|
Loading…
x
Reference in New Issue
Block a user