mirror of
https://github.com/welpo/tabi.git
synced 2025-11-23 02:00:25 +01:00
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:
parent
752aacb84c
commit
1ff91cebcf
3 changed files with 7 additions and 7 deletions
|
|
@ -101,13 +101,14 @@
|
|||
<content type="html">{{ page.content }}</content>
|
||||
{% endif -%}
|
||||
<summary type="xhtml">
|
||||
<!-- xhtml allows multi-paragraph summary -->
|
||||
<div xmlns="http://www.w3.org/1999/xhtml">
|
||||
{% if page.description -%}
|
||||
<p>{{ page.description | markdown(inline=true) | safe }}</p>
|
||||
{% endif %}
|
||||
{% if page.summary -%}
|
||||
<p>{{ page.summary | striptags | trim_end_matches(pat=".") | safe }}...</p>
|
||||
{% elif config.extra.auto_generated_atom_feed_summary %}
|
||||
{% elif config.extra.auto_generate_post_summary %}
|
||||
<p>{{ page.content | striptags | truncate(length=config.extra.auto_generated_summary_length) | safe }}</p>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue