From 0e7d7a66258c24cdcea40405c6e0aa12b22624a5 Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Sat, 5 Oct 2019 00:20:13 +0200 Subject: [PATCH] Tweak OG metadata display below notes, hide image if empty --- templates/utils.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/templates/utils.html b/templates/utils.html index 549d4a4..2d737ba 100644 --- a/templates/utils.html +++ b/templates/utils.html @@ -226,10 +226,12 @@ {% for og in meta.og_metadata %} {% if og.url %} -
+{% if og.image | get_og_image_url %} +
-
+{% endif %} +
{{ og.title }}

{{ og.description | truncate(80) }}

{{ og.site_name }}