perf: truncate post content for search results
This commit is contained in:
parent
1c330f403c
commit
647eea8dbd
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue