From 91224e634a38802afeef070e0a87ef9c66f22cb6 Mon Sep 17 00:00:00 2001 From: David Bailey Date: Thu, 4 Jan 2024 16:06:06 +0100 Subject: [PATCH] feat: :sparkles: add OpenGraph tags --- www/templates/pathed_content.html | 6 ++++++ www/templates/post_types/image.html | 7 +++++++ www/templates/post_types/markdown.html | 6 ++++++ www/templates/root.html | 2 ++ 4 files changed, 21 insertions(+) diff --git a/www/templates/pathed_content.html b/www/templates/pathed_content.html index 7ac1cdf..76ce234 100644 --- a/www/templates/pathed_content.html +++ b/www/templates/pathed_content.html @@ -11,6 +11,12 @@

{{ 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 60ef590..7ab5123 100644 --- a/www/templates/post_types/image.html +++ b/www/templates/post_types/image.html @@ -6,6 +6,13 @@ {%endblock%} +{% block opengraph_tags %} + {{ parent() }} + + + +{%endblock %} + {%block content_article%}
diff --git a/www/templates/post_types/markdown.html b/www/templates/post_types/markdown.html index d4e79a4..f874fbc 100644 --- a/www/templates/post_types/markdown.html +++ b/www/templates/post_types/markdown.html @@ -2,6 +2,12 @@ {% extends "pathed_content.html" %} +{% block opengraph_tags %} + {{ parent() }} + + +{%endblock %} + {%block content_article%} {{ post['post_content']|markdown_to_html }} {% endblock %} \ No newline at end of file diff --git a/www/templates/root.html b/www/templates/root.html index 3302d24..b5f0295 100644 --- a/www/templates/root.html +++ b/www/templates/root.html @@ -13,6 +13,8 @@ {% block extra_head %}{% endblock %} + {% block opengraph_tags %}{% endblock %} +