simplify article image
This commit is contained in:
@@ -29,6 +29,8 @@
|
|||||||
{% set seo_description = seo_more|replace('"','') %}
|
{% set seo_description = seo_more|replace('"','') %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
<!-- Article Image -->
|
||||||
|
{% set article_image = "%s/%s/../wp-content/uploads/article/poster/%s" % (SITEURL, THEME_STATIC_DIR, article.image) %}
|
||||||
<!-- Meta Article -->
|
<!-- Meta Article -->
|
||||||
<meta name="author" content="{{ article.author }}"/>
|
<meta name="author" content="{{ article.author }}"/>
|
||||||
<meta name="description" content="{{ seo_description|striptags }}"/>
|
<meta name="description" content="{{ seo_description|striptags }}"/>
|
||||||
@@ -37,7 +39,7 @@
|
|||||||
<meta itemprop="name" content="{{ article.title }}"/>
|
<meta itemprop="name" content="{{ article.title }}"/>
|
||||||
<meta itemprop="description" content="{{ seo_description|striptags }}"/>
|
<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="{{ article_image }}"/>
|
||||||
<!-- OpenGraph -->
|
<!-- OpenGraph -->
|
||||||
<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() }}"/>
|
||||||
@@ -48,7 +50,7 @@
|
|||||||
<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|striptags }}"/>
|
<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="{{ 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 }}"/>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
@@ -66,7 +68,7 @@
|
|||||||
<meta name="twitter:title" content="{{ article.title }} - {{ SITENAME }}"/>
|
<meta name="twitter:title" content="{{ article.title }} - {{ SITENAME }}"/>
|
||||||
<meta name="twitter:description" content="{{ seo_description|striptags }}"/>
|
<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="{{ article_image }}"/>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user