From 4420f5f73ec180d4223d6e524ec3313b196c46b2 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Mon, 8 May 2017 21:30:35 +0100 Subject: [PATCH] Add default meta tag content --- source/_partials/head.twig | 4 +--- source/_partials/og.twig | 13 ++++++++----- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/source/_partials/head.twig b/source/_partials/head.twig index c6c93ee5..9aa17455 100644 --- a/source/_partials/head.twig +++ b/source/_partials/head.twig @@ -9,9 +9,7 @@ {% endif %} - {% if page.meta.og %} - {% include 'og' with { og: page.meta.og } %} - {% endif %} + {% include 'og' with { og: page.meta.og } %} {% block styles %}{% endblock %} diff --git a/source/_partials/og.twig b/source/_partials/og.twig index 2ac27bbb..226042e6 100644 --- a/source/_partials/og.twig +++ b/source/_partials/og.twig @@ -1,8 +1,5 @@ - -{% if og.title %} - -{% endif %} + {% if og.description %} @@ -23,16 +20,22 @@ {% if og.image.height %} {% endif %} +{% else %} + + + + {% endif %} {% if og.title %} {% if og.image %} - {% else %} + {% endif %} +