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 %}
|
{% endif %}
|
||||||
<!-- Meta Article -->
|
<!-- Meta Article -->
|
||||||
<meta name="author" content="{{ article.author }}"/>
|
<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 name="keywords" content="{{ article.tags|join(',')|escape }}"/>
|
||||||
<meta property="article:section" content="{{ article.category }}"/>
|
<meta property="article:section" content="{{ article.category }}"/>
|
||||||
<meta property="video:release_date" content="{{ article.date.isoformat() }}"/>
|
<meta property="video:release_date" content="{{ article.date.isoformat() }}"/>
|
||||||
@ -40,14 +40,14 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
<!-- Schema -->
|
<!-- Schema -->
|
||||||
<meta itemprop="name" content="{{ article.title }}"/>
|
<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="uploadDate" content="{{ article.date.isoformat() }}"/>
|
||||||
<meta itemprop="thumbnailURL" content="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/../wp-content/uploads/article/poster/{{ article.image }}"/>
|
<meta itemprop="thumbnailURL" content="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/../wp-content/uploads/article/poster/{{ article.image }}"/>
|
||||||
<!-- OpenGraph -->
|
<!-- OpenGraph -->
|
||||||
<meta property="og:title" content="{{ article.title }}"/>
|
<meta property="og:title" content="{{ article.title }}"/>
|
||||||
<meta property="og:type" content="video.movie"/>
|
<meta property="og:type" content="video.movie"/>
|
||||||
<meta property="og:url" content="{{ SITEURL }}/{{ article.url }}"/>
|
<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 }}"/>
|
<meta property="og:image" content="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/../wp-content/uploads/article/poster/{{ article.image }}"/>
|
||||||
{% for tag in article.tags %}
|
{% for tag in article.tags %}
|
||||||
<meta property="og:video:tag" content="{{ tag | escape }}"/>
|
<meta property="og:video:tag" content="{{ tag | escape }}"/>
|
||||||
@ -64,7 +64,7 @@
|
|||||||
<!-- Twitter -->
|
<!-- Twitter -->
|
||||||
<meta name="twitter:card" content="summary"/>
|
<meta name="twitter:card" content="summary"/>
|
||||||
<meta name="twitter:title" content="{{ article.title }} - {{ SITENAME }}"/>
|
<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:url" content="{{ SITEURL }}/{{ article.url }}"/>
|
||||||
<meta name="twitter:image" content="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/../wp-content/uploads/article/poster/{{ article.image }}"/>
|
<meta name="twitter:image" content="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/../wp-content/uploads/article/poster/{{ article.image }}"/>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
@ -9,8 +9,9 @@
|
|||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
<!-- title tag -->
|
<!-- title category -->
|
||||||
<h3 class="text-center">{{ category }}</h3>
|
<h3 class="text-center">{{ category }}</h3>
|
||||||
|
<!-- /title category -->
|
||||||
</div>
|
</div>
|
||||||
{{ super() }}
|
{{ super() }}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
{{ super() }}
|
{{ super() }}
|
||||||
{% if lang_siteurls and articles_page.number == 1 %}
|
{% if lang_siteurls and articles_page.number == 1 %}
|
||||||
{% for lang, url in lang_siteurls.items() %}
|
{% for lang, url in lang_siteurls.items() %}
|
||||||
<link rel="alternate" hreflang="{{ lang }}" href="{{ url }}/">
|
<link rel="alternate" hreflang="{{ lang }}" href="{{ url }}"/>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user