striptags in description

deteled back.file
This commit is contained in:
Jesús 2019-11-23 19:58:41 -05:00
parent d9897d6f63
commit d1c5657f53
No known key found for this signature in database
GPG Key ID: F6EE7BC59A315766
4 changed files with 7 additions and 7 deletions

View File

@ -1 +0,0 @@
heckyel@gnu.5679

View File

@ -31,7 +31,7 @@
{% endif %}
<!-- Meta Article -->
<meta name="author" content="{{ article.author }}"/>
<meta name="description" content="{{ seo_description }}"/>
<meta name="description" content="{{ seo_description|striptags }}"/>
<meta name="keywords" content="{{ article.tags|join(',')|escape }}"/>
<meta property="article:section" content="{{ article.category }}"/>
<meta property="video:release_date" content="{{ article.date.isoformat() }}"/>
@ -40,14 +40,14 @@
{% endif %}
<!-- Schema -->
<meta itemprop="name" content="{{ article.title }}"/>
<meta itemprop="description" content="{{ seo_description }}"/>
<meta itemprop="description" content="{{ seo_description|striptags }}"/>
<meta itemprop="uploadDate" content="{{ article.date.isoformat() }}"/>
<meta itemprop="thumbnailURL" content="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/../wp-content/uploads/article/poster/{{ article.image }}"/>
<!-- OpenGraph -->
<meta property="og:title" content="{{ article.title }}"/>
<meta property="og:type" content="video.movie"/>
<meta property="og:url" content="{{ SITEURL }}/{{ article.url }}"/>
<meta property="og:description" content="{{ seo_description }}"/>
<meta property="og:description" content="{{ seo_description|striptags }}"/>
<meta property="og:image" content="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/../wp-content/uploads/article/poster/{{ article.image }}"/>
{% for tag in article.tags %}
<meta property="og:video:tag" content="{{ tag | escape }}"/>
@ -64,7 +64,7 @@
<!-- Twitter -->
<meta name="twitter:card" content="summary"/>
<meta name="twitter:title" content="{{ article.title }} - {{ SITENAME }}"/>
<meta name="twitter:description" content="{{ seo_description }}"/>
<meta name="twitter:description" content="{{ seo_description|striptags }}"/>
<meta name="twitter:url" content="{{ SITEURL }}/{{ article.url }}"/>
<meta name="twitter:image" content="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/../wp-content/uploads/article/poster/{{ article.image }}"/>
{% endblock %}

View File

@ -9,8 +9,9 @@
{% block content %}
<div class="col-md-12">
<!-- title tag -->
<!-- title category -->
<h3 class="text-center">{{ category }}</h3>
<!-- /title category -->
</div>
{{ super() }}
{% endblock %}

View File

@ -7,7 +7,7 @@
{{ super() }}
{% if lang_siteurls and articles_page.number == 1 %}
{% for lang, url in lang_siteurls.items() %}
<link rel="alternate" hreflang="{{ lang }}" href="{{ url }}/">
<link rel="alternate" hreflang="{{ lang }}" href="{{ url }}"/>
{% endfor %}
{% endif %}