aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/templates
diff options
context:
space:
mode:
authorGravatar ks129 <[email protected]>2020-09-20 14:04:26 +0300
committerGravatar ks129 <[email protected]>2020-09-20 14:04:26 +0300
commit9f80539cbcc11893ad03a8e44046bdb95c305100 (patch)
tree677f8c09c4ff0aeefaa3d9d422b22c7b775e0ab0 /pydis_site/templates
parentAdd syntax highlight support for guides (diff)
Add OpenGraph meta tags to guides for Discord embeds
Diffstat (limited to 'pydis_site/templates')
-rw-r--r--pydis_site/templates/guides/guide.html4
1 files changed, 4 insertions, 0 deletions
diff --git a/pydis_site/templates/guides/guide.html b/pydis_site/templates/guides/guide.html
index 10da1ea5..8f841c53 100644
--- a/pydis_site/templates/guides/guide.html
+++ b/pydis_site/templates/guides/guide.html
@@ -3,6 +3,10 @@
{% block title %}{{ metadata.title|first }}{% endblock %}
{% block head %}
+
+ <meta property="og:title" content="Python Discord - {{ metadata.title|first }}" />
+ <meta property="og:type" content="website" />
+ <meta property="og:description" content="{{ metadata.shortdescription }}" />
<link rel="stylesheet" href="{% static "css/guides/guide.css" %}">
<link rel="stylesheet" href="//cdn.jsdelivr.net/gh/highlightjs/[email protected]/build/styles/default.min.css">
<script src="//cdn.jsdelivr.net/gh/highlightjs/[email protected]/build/highlight.min.js"></script>