💄 style(meta): add "…" when using summary with `<!-- more -->`

Removes trailing periods, if they exist, before adding "…".

Partially reverts f03a9b3.
main
welpo 2 years ago
parent e72a8da596
commit 0c87f6513b
No known key found for this signature in database
GPG Key ID: A2F978CF4EC1F5A6

@ -57,8 +57,8 @@
<meta name="description" content="{{ page.description | striptags | safe }}" />
<meta property="og:description" content="{{ page.description | striptags | safe }}">
{%- elif page.summary %}
<meta name="description" content="{{ page.summary | striptags | safe }}" />
<meta property="og:description" content="{{ page.summary | striptags | safe }}">
<meta name="description" content="{{ page.summary | striptags | safe | trim_end_matches(pat=".") }}" />
<meta property="og:description" content="{{ page.summary | striptags | safe | trim_end_matches(pat=".") }}">
{%- else %}
<meta name="description" content="{{ config.description }}" />
<meta property="og:description" content="{{ config.description }}">

Loading…
Cancel
Save