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 %} +