From cd07f3b15c5055a9b7ee50da2161b42c56af5114 Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Fri, 20 Dec 2024 13:22:09 +0200 Subject: Add Open Graph meta tags to poll and manage pages Fixes #2 --- templates/base.html.j2 | 6 ++++-- templates/manage.html.j2 | 12 +++++++++++- templates/poll.html.j2 | 10 ++++++++++ 3 files changed, 25 insertions(+), 3 deletions(-) diff --git a/templates/base.html.j2 b/templates/base.html.j2 index c7e03d7..e0ae0d6 100644 --- a/templates/base.html.j2 +++ b/templates/base.html.j2 @@ -1,12 +1,14 @@ - diddle 👉👈 - + {% block head_meta %} + diddle 👉👈 + + {% endblock %}

diddle 👉👈

diff --git a/templates/manage.html.j2 b/templates/manage.html.j2 index 8cd2027..551e941 100644 --- a/templates/manage.html.j2 +++ b/templates/manage.html.j2 @@ -1,5 +1,15 @@ {% extends "base.html.j2" %} +{% block head_meta %} +Manage "{{ poll.title }}" - diddle 👉👈 + + + + + + +{% endblock %} + {% block content %}

Managing {{ poll.title }} by {{ poll.author_name }}

@@ -157,4 +167,4 @@ function copyShareLink() { } -{% endblock %} \ No newline at end of file +{% endblock %} diff --git a/templates/poll.html.j2 b/templates/poll.html.j2 index c09f089..14601fb 100644 --- a/templates/poll.html.j2 +++ b/templates/poll.html.j2 @@ -1,5 +1,15 @@ {% extends "base.html.j2" %} +{% block head_meta %} +{{ poll.title }} - diddle 👉👈 + + + + + + +{% endblock %} + {% block content %}

{{ poll.title }} by {{ poll.author_name }}

-- cgit v1.3