From 83d7c945395ade5f31b8ba1437a8b0e3d0209be2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs?= Date: Thu, 11 Apr 2019 21:29:35 -0500 Subject: improve opengraph to video --- libretube-theme/templates/article.html | 19 ++++++++++++++----- libretube-theme/templates/base.html | 2 +- 2 files changed, 15 insertions(+), 6 deletions(-) (limited to 'libretube-theme') diff --git a/libretube-theme/templates/article.html b/libretube-theme/templates/article.html index 51fb2cc..6e9ffe3 100644 --- a/libretube-theme/templates/article.html +++ b/libretube-theme/templates/article.html @@ -18,9 +18,9 @@ {{ translations.entry_hreflang(article) }} {% endif %} - + - + {% if article.modified %} {% endif %} @@ -35,13 +35,22 @@ {% endif %} {% endif %} - {% if article.og_image %} - + {% if article.image %} + {% elif OPEN_GRAPH_IMAGE %} {% endif %} + + {% if article.og_video %} + + + + + + {% endif %} + {% for tag in article.tags %} - + {% endfor %} {% if article.styles %} diff --git a/libretube-theme/templates/base.html b/libretube-theme/templates/base.html index c91fb39..99842c1 100644 --- a/libretube-theme/templates/base.html +++ b/libretube-theme/templates/base.html @@ -1,6 +1,6 @@ - + {% block head %} -- cgit v1.2.3