aboutsummaryrefslogtreecommitdiffstats
path: root/templates/poll.html.j2
diff options
context:
space:
mode:
authorJan Tuomi <jans.tuomi@gmail.com>2024-12-20 13:22:09 +0200
committerJan Tuomi <jan@jantuomi.fi>2024-12-21 19:43:13 +0200
commitcd07f3b15c5055a9b7ee50da2161b42c56af5114 (patch)
treec77ce4a53483e21f3517bed1b37a680064cbf2aa /templates/poll.html.j2
parentedad25c53e4c3d6a9ea285c82913fb8486471dc9 (diff)
Add Open Graph meta tags to poll and manage pages
Fixes #2
Diffstat (limited to 'templates/poll.html.j2')
-rw-r--r--templates/poll.html.j210
1 files changed, 10 insertions, 0 deletions
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 %}
+<title>{{ poll.title }} - diddle 👉👈</title>
+<meta name="description" content="{{ poll.description }}">
+<meta property="og:title" content="{{ poll.title }} by {{ poll.author_name }}">
+<meta property="og:description" content="{{ poll.description }}">
+<meta property="og:url" content="{{ poll.share_url() }}">
+<meta property="og:site_name" content="diddle">
+<meta property="og:type" content="website">
+{% endblock %}
+
{% block content %}
<h2><span class="contrast">{{ poll.title }}</span> by <i>{{ poll.author_name }}</i></h2>