aboutsummaryrefslogtreecommitdiffstats
path: root/libretube-theme
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2020-06-11 22:00:40 -0500
committerJesús <heckyel@hyperbola.info>2020-06-11 22:00:40 -0500
commit7cae35947efb1d00d7c8b50f7cce1a6ed62178b7 (patch)
tree839f093ea5e839d3435cd9d13fe426b3643ac8d4 /libretube-theme
parente1483ae1e915600c73a55e0e61c88893eeda1e0f (diff)
downloadlibretube-7cae35947efb1d00d7c8b50f7cce1a6ed62178b7.tar.lz
libretube-7cae35947efb1d00d7c8b50f7cce1a6ed62178b7.tar.xz
libretube-7cae35947efb1d00d7c8b50f7cce1a6ed62178b7.zip
Improved thumbnail in article, according to platform
Diffstat (limited to 'libretube-theme')
-rw-r--r--libretube-theme/templates/article.html4
-rw-r--r--libretube-theme/templates/base.html2
2 files changed, 3 insertions, 3 deletions
diff --git a/libretube-theme/templates/article.html b/libretube-theme/templates/article.html
index 47c7d1c..8063ab0 100644
--- a/libretube-theme/templates/article.html
+++ b/libretube-theme/templates/article.html
@@ -30,7 +30,7 @@
{% endif %}
{% endif %}
<!-- Article Image -->
- {% set article_image = "%s/%s/../wp-content/uploads/article/poster/%s" % (SITEURL, THEME_STATIC_DIR, article.image) %}
+ {% set article_image = "%s/%s/../wp-content/uploads/article/thumbnail/%s" % (SITEURL, THEME_STATIC_DIR, article.image) %}
<!-- Meta Article -->
<meta name="author" content="{{ article.author }}"/>
<meta name="description" content="{{ seo_description|striptags }}"/>
@@ -227,7 +227,7 @@
</div> <!-- End Mask / Hover -->
{% if article.image %}
- <img src="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/../wp-content/uploads/article/poster/{{ article.image }}" alt="{{ article.title }}" class="img-fluid">
+ <img src="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/../wp-content/uploads/article/thumbnail/{{ article.image }}" alt="{{ article.title }}" class="img-fluid">
{% else %}
<img src="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/video.png" alt="video" class="img-fluid">
{% endif %}
diff --git a/libretube-theme/templates/base.html b/libretube-theme/templates/base.html
index b72af1e..87fb05e 100644
--- a/libretube-theme/templates/base.html
+++ b/libretube-theme/templates/base.html
@@ -96,7 +96,7 @@
</div> <!-- End Mask / Hover -->
{% if article.image %}
- <img itemprop="image" src="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/../wp-content/uploads/article/poster/{{ article.image }}" alt="{{ article.title }}" class="img-fluid">
+ <img itemprop="image" src="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/../wp-content/uploads/article/thumbnail/{{ article.image }}" alt="{{ article.title }}" class="img-fluid">
{% else %}
<img itemprop="image" src="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/video.png" alt="video" class="img-fluid">
{% endif %}