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
parent 752aacb84c
commit 1ff91cebcf
3 changed files with 7 additions and 7 deletions

View file

@ -146,7 +146,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>