🐛 fix: remove unnecessary description filters
It caused issues if description contained double quotes.
This commit is contained in:
parent
01d5322ef3
commit
6673a063b8
@ -67,7 +67,7 @@
|
|||||||
{% if page.summary -%}
|
{% if page.summary -%}
|
||||||
<summary type="html">{{ page.summary | striptags | safe | trim_end_matches(pat=".") }}…</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 }}</summary>
|
||||||
{% endif -%}
|
{% endif -%}
|
||||||
</entry>
|
</entry>
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
|
@ -34,7 +34,7 @@
|
|||||||
|
|
||||||
<div class="description">
|
<div class="description">
|
||||||
{% if post.description %}
|
{% if post.description %}
|
||||||
<p>{{ post.description | striptags | safe }}</p>
|
<p>{{ post.description }}</p>
|
||||||
{% elif post.summary %}
|
{% elif post.summary %}
|
||||||
<p>{{ post.summary | striptags | safe | trim_end_matches(pat=".") }}…</p>
|
<p>{{ post.summary | striptags | safe | trim_end_matches(pat=".") }}…</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -62,11 +62,11 @@
|
|||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
|
|
||||||
{%- if page.description %}
|
{%- if page.description %}
|
||||||
<meta name="description" content="{{ page.description | striptags | safe }}" />
|
<meta name="description" content="{{ page.description }}" />
|
||||||
<meta property="og:description" content="{{ page.description | striptags | safe }}" />
|
<meta property="og:description" content="{{ page.description }}" />
|
||||||
{%- elif section.description %}
|
{%- elif section.description %}
|
||||||
<meta name="description" content="{{ section.description | striptags | safe }}" />
|
<meta name="description" content="{{ section.description }}" />
|
||||||
<meta property="og:description" content="{{ section.description | striptags | safe }}" />
|
<meta property="og:description" content="{{ section.description }}" />
|
||||||
{%- elif page.summary %}
|
{%- elif page.summary %}
|
||||||
<meta name="description" content="{{ page.summary | striptags | safe | trim_end_matches(pat=".") }}…" />
|
<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=".") }}…" />
|
<meta property="og:description" content="{{ page.summary | striptags | safe | trim_end_matches(pat=".") }}…" />
|
||||||
|
Loading…
x
Reference in New Issue
Block a user