forked from deepStateMirrors/tabi
💄 style(meta): add "…" when using summary with <!-- more -->
Removes trailing periods, if they exist, before adding "…".
Partially reverts f03a9b3
.
This commit is contained in:
parent
e72a8da596
commit
0c87f6513b
1 changed files with 2 additions and 2 deletions
|
@ -57,8 +57,8 @@
|
||||||
<meta name="description" content="{{ page.description | striptags | safe }}" />
|
<meta name="description" content="{{ page.description | striptags | safe }}" />
|
||||||
<meta property="og:description" content="{{ page.description | striptags | safe }}">
|
<meta property="og:description" content="{{ page.description | striptags | safe }}">
|
||||||
{%- elif page.summary %}
|
{%- elif page.summary %}
|
||||||
<meta name="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 }}">
|
<meta property="og:description" content="{{ page.summary | striptags | safe | trim_end_matches(pat=".") }}…">
|
||||||
{%- else %}
|
{%- else %}
|
||||||
<meta name="description" content="{{ config.description }}" />
|
<meta name="description" content="{{ config.description }}" />
|
||||||
<meta property="og:description" content="{{ config.description }}">
|
<meta property="og:description" content="{{ config.description }}">
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue