mirror of
https://github.com/pmoreno-rodriguez/grav-theme-future2021.git
synced 2025-06-07 11:58:53 +00:00
Fixed the escaping of an html string in the metadata description
This commit is contained in:
parent
a4ae56c25d
commit
79b0019c11
1 changed files with 2 additions and 2 deletions
|
@ -14,7 +14,7 @@
|
|||
<meta name="og:title" property="og:title" content="{{ page.title|raw }}" />
|
||||
{% endif %}
|
||||
{% if not page.metadata["og:description"] %}
|
||||
<meta name="og:description" property="og:description" content="{{ page.summary|striptags|truncate(150)|raw }}" />
|
||||
<meta name="og:description" property="og:description" content="{{ page.summary|striptags|e('html')|truncate(150)|raw }}" />
|
||||
{% endif %}
|
||||
{% if not page.metadata["og:type"] %}
|
||||
<meta name="og:type" property="og:type" content="article" />
|
||||
|
@ -41,7 +41,7 @@
|
|||
<meta name="twitter:title" property="twitter:title" content="{{ page.title|raw }}" />
|
||||
{% endif %}
|
||||
{% if not page.metadata["twitter:description"] %}
|
||||
<meta name="twitter:description" property="twitter:description" content="{{ page.summary|striptags|truncate(150)|raw }}" />
|
||||
<meta name="twitter:description" property="twitter:description" content="{{ page.summary|striptags|e('html')|truncate(150)|raw }}" />
|
||||
{% endif %}
|
||||
{% if not page.metadata["twitter:image"] and image %}
|
||||
<meta name="twitter:image" property="twitter:image" content="{{ uri.base ~ image.url|raw }}" />
|
||||
|
|
Loading…
Add table
Reference in a new issue