striptags in description
deteled back.file
This commit is contained in:
parent
d9897d6f63
commit
d1c5657f53
@ -1 +0,0 @@
|
||||
heckyel@gnu.5679
|
@ -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 %}
|
||||
|
@ -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 %}
|
||||
|
@ -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 %}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user