fix(summary): update default parameters

Default to:
auto_generate_post_summary = true
auto_generated_summary_length = 200

Addresses https://github.com/welpo/tabi/pull/579
Closes https://github.com/welpo/tabi/issues/491
This commit is contained in:
Lee Kai Ze 2025-11-13 15:12:59 +08:00 committed by welpo
parent e9b0a3f3f0
commit 85ec51cf97
No known key found for this signature in database
GPG key ID: A2F978CF4EC1F5A6
3 changed files with 7 additions and 7 deletions

View file

@ -168,7 +168,7 @@
{% endif %}
{% if post.summary %}
<p>{{ post.summary | striptags | trim_end_matches(pat=".") | safe }}...</p>
{% elif config.extra.auto_generated_post_listing_summary %}
{% elif config.extra.auto_generate_post_summary %}
<p>{{ post.content | striptags | truncate(length=config.extra.auto_generated_summary_length) | safe }}</p>
{% endif %}
</div>