From 5d1d4cdc32bca34e87cde3f3988fb72c6bd58998 Mon Sep 17 00:00:00 2001 From: David Bailey Date: Tue, 9 Jan 2024 00:12:31 +0100 Subject: [PATCH] refactor: move as many OG tags to root page as possible --- www/templates/pathed_content.html | 6 ------ www/templates/post_types/image.html | 3 ++- www/templates/root.html | 19 ++++++++++++++++--- 3 files changed, 18 insertions(+), 10 deletions(-) diff --git a/www/templates/pathed_content.html b/www/templates/pathed_content.html index 76ce234..7ac1cdf 100644 --- a/www/templates/pathed_content.html +++ b/www/templates/pathed_content.html @@ -11,12 +11,6 @@

{{ post.post_metadata.title }}

{% endblock %} -{% block opengraph_tags %} - - -{% endblock %} - - {%block main_content%} {{ include('fragments/filepath_bar.html') }} diff --git a/www/templates/post_types/image.html b/www/templates/post_types/image.html index 7ab5123..00ea107 100644 --- a/www/templates/post_types/image.html +++ b/www/templates/post_types/image.html @@ -9,8 +9,9 @@ {% block opengraph_tags %} {{ parent() }} - + + {%endblock %} {%block content_article%} diff --git a/www/templates/root.html b/www/templates/root.html index d3bafe0..13ba701 100644 --- a/www/templates/root.html +++ b/www/templates/root.html @@ -1,7 +1,7 @@ - Lucidragons' Fire + The Dergsite - {{og.title}} @@ -13,10 +13,23 @@ {% block extra_head %}{% endblock %} - {% block opengraph_tags %}{% endblock %} + {% block opengraph_tags %} + + + + + + + + + + + + + {% endblock %}