From 40685312fa97a41c5a8e19aba2bbfbe318fdb0dc Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Mon, 10 Sep 2018 20:20:45 +0100 Subject: [PATCH] Move meta tags into a partial --- source/_layouts/app.html.twig | 11 +---------- source/_partials/meta.html.twig | 10 ++++++++++ 2 files changed, 11 insertions(+), 10 deletions(-) create mode 100644 source/_partials/meta.html.twig diff --git a/source/_layouts/app.html.twig b/source/_layouts/app.html.twig index dc1c8446..1701023e 100644 --- a/source/_layouts/app.html.twig +++ b/source/_layouts/app.html.twig @@ -8,16 +8,7 @@ {{ site.title }} - {{ site.subtitle }} - - - - - - {% if page.meta.description %} - - {% endif %} - - {% include 'og' with { og: page.meta.og } %} + {% include 'meta' %} {% block stylesheets %}{% endblock %} diff --git a/source/_partials/meta.html.twig b/source/_partials/meta.html.twig new file mode 100644 index 00000000..3fd7b484 --- /dev/null +++ b/source/_partials/meta.html.twig @@ -0,0 +1,10 @@ + + + + + +{% if page.meta.description %} + +{% endif %} + +{% include 'og' with { og: page.meta.og } %}