💄 style: add "…" when using summary with <!-- more -->
Removes trailing periods, if they exist, befor adding "…". Partially reverts f03a9b3.
This commit is contained in:
parent
718f477949
commit
e72a8da596
@ -75,7 +75,7 @@
|
|||||||
<link rel="alternate" href="{{ page.permalink | safe }}" type="text/html"/>
|
<link rel="alternate" href="{{ page.permalink | safe }}" type="text/html"/>
|
||||||
<id>{{ page.permalink | safe }}</id>
|
<id>{{ page.permalink | safe }}</id>
|
||||||
{% if page.summary -%}
|
{% if page.summary -%}
|
||||||
<summary type="html">{{ page.summary | striptags | safe }}</summary>
|
<summary type="html">{{ page.summary | striptags | safe | trim_end_matches(pat=".") }}…</summary>
|
||||||
{% elif page.description -%}
|
{% elif page.description -%}
|
||||||
<summary type="html">{{ page.description | striptags | safe }}</summary>
|
<summary type="html">{{ page.description | striptags | safe }}</summary>
|
||||||
{% endif -%}
|
{% endif -%}
|
||||||
|
@ -34,7 +34,7 @@
|
|||||||
{% if post.description %}
|
{% if post.description %}
|
||||||
<p>{{ post.description | striptags | safe }}</p>
|
<p>{{ post.description | striptags | safe }}</p>
|
||||||
{% elif post.summary %}
|
{% elif post.summary %}
|
||||||
<p>{{ post.summary | striptags | safe }}</p>
|
<p>{{ post.summary | striptags | safe | trim_end_matches(pat=".") }}…</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user