|
@@ -1,9 +1,9 @@
|
|
{% macro smo_metadata(article) %}
|
|
{% macro smo_metadata(article) %}
|
|
-<meta property="og:title" content="{{ article.title|striptags }} {%if article.subtitle %} - {{ article.subtitle }} {% endif %}"/>
|
|
|
|
|
|
+<meta property="og:title" content="{{ article.title|striptags|e }} {%if article.subtitle %} - {{ article.subtitle|striptags|e }} {% endif %}"/>
|
|
<meta property="og:type" content="article" />
|
|
<meta property="og:type" content="article" />
|
|
<meta property="og:url" content="{{ SITEURL }}/{{ article.url }}" />
|
|
<meta property="og:url" content="{{ SITEURL }}/{{ article.url }}" />
|
|
-<meta property="og:description" content="{{article.summary|striptags}}" />
|
|
|
|
-<meta property="og:site_name" content="{{ SITENAME|striptags }}" />
|
|
|
|
|
|
+<meta property="og:description" content="{{article.summary|striptags|e}}" />
|
|
|
|
+<meta property="og:site_name" content="{{ SITENAME|striptags|e }}" />
|
|
<meta property="og:article:author" content="{{ article.author }}" />
|
|
<meta property="og:article:author" content="{{ article.author }}" />
|
|
{% if article.date %}
|
|
{% if article.date %}
|
|
<meta property="og:article:published_time" content="{{ article.date.isoformat() }}" />
|
|
<meta property="og:article:published_time" content="{{ article.date.isoformat() }}" />
|
|
@@ -16,8 +16,8 @@
|
|
{%if TWITTER_USERNAME %}
|
|
{%if TWITTER_USERNAME %}
|
|
<meta name="twitter:creator" content="@{{TWITTER_USERNAME}}">
|
|
<meta name="twitter:creator" content="@{{TWITTER_USERNAME}}">
|
|
{% endif %}
|
|
{% endif %}
|
|
-<meta name="twitter:title" content="{{ article.title|striptags }} {%if article.subtitle %} - {{ article.subtitle }} {% endif %}">
|
|
|
|
-<meta name="twitter:description" content="{{article.summary|striptags}}">
|
|
|
|
|
|
+<meta name="twitter:title" content="{{ article.title|striptags|e }} {%if article.subtitle %} - {{ article.subtitle|striptags|e }} {% endif %}">
|
|
|
|
+<meta name="twitter:description" content="{{article.summary|striptags|e}}">
|
|
{% if article.featured_image %}
|
|
{% if article.featured_image %}
|
|
<meta property="og:image" content="{{article.featured_image}}" />
|
|
<meta property="og:image" content="{{article.featured_image}}" />
|
|
<meta name="twitter:image" content="{{article.featured_image}}" >
|
|
<meta name="twitter:image" content="{{article.featured_image}}" >
|