From a7cab415bdc5832b9a9a37f5ec92bfce95ecd8eb Mon Sep 17 00:00:00 2001 From: Sam Wilson Date: Thu, 30 Sep 2021 20:50:59 +0800 Subject: [PATCH] Add OpenGraph metadata etc. --- templates/base.html.twig | 2 ++ templates/post/view.html.twig | 26 ++++++++++++++++++++++---- 2 files changed, 24 insertions(+), 4 deletions(-) diff --git a/templates/base.html.twig b/templates/base.html.twig index 5d47c05..9f4b721 100644 --- a/templates/base.html.twig +++ b/templates/base.html.twig @@ -7,6 +7,8 @@ {{ encore_entry_link_tags('app') }} {% block stylesheets %}{% endblock %} + + {% block head %}{% endblock %}
diff --git a/templates/post/view.html.twig b/templates/post/view.html.twig index 16edbee..b717d7c 100644 --- a/templates/post/view.html.twig +++ b/templates/post/view.html.twig @@ -12,9 +12,27 @@ {{ encore_entry_script_tags('map') }} {% endblock %} +{% block head %} + + {% if post.title %} + + {% endif %} + {% if post.url %} + + {% else %} + + {% endif %} + {% if post.file %} + + {% endif %} + {% for tag in post.tags %} + + {% endfor %} +{% endblock %} + {% block body %} -