From eb79cee7ef6bdc4a44aabfce10617a18be2b8d96 Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Sat, 26 Dec 2020 19:07:29 +0100 Subject: Add opengraph support. --- templates/base.html | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) (limited to 'templates/base.html') diff --git a/templates/base.html b/templates/base.html index 78dcb60..69e836a 100644 --- a/templates/base.html +++ b/templates/base.html @@ -5,8 +5,30 @@ - {% if page.title %}{{ page.title }}{% else %}{{ config.title }}{% endif %} - + {% if page.title %}{{ page.title }} - {% endif %}{{ config.title }} + + + {% block opengraph %} + + + + + + {% if page.extra['opengraph']['img'] %} + + {% endif %} + + + + + + + {% if page.extra['opengraph']['img'] %} + + {% endif %} + {% endblock opengraph %} + +