aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorGravatar Joseph <[email protected]>2018-03-01 16:31:38 +0000
committerGravatar Leon Sandøy <[email protected]>2018-03-01 17:31:38 +0100
commit4969415b99b5a90bc976ff6fcb5f0f327e2d7c96 (patch)
tree4ffb016a77c3854002d6098cfe0cf4b429fe11bd /templates
parentFix spacing issues (diff)
OpenGraph metadata (#32)
Better embedding for the url to the site.
Diffstat (limited to 'templates')
-rw-r--r--templates/main/base.html43
1 files changed, 25 insertions, 18 deletions
diff --git a/templates/main/base.html b/templates/main/base.html
index 50281159..d231c073 100644
--- a/templates/main/base.html
+++ b/templates/main/base.html
@@ -2,30 +2,37 @@
<html lang="en">
<head>
{% block head %}
- <title>Python | {% block title %}{% endblock %}</title>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <script defer src="https://use.fontawesome.com/releases/v5.0.6/js/all.js"></script>
- <script defer src="https://cdnjs.cloudflare.com/ajax/libs/uikit/3.0.0-beta.39/js/uikit.min.js"></script>
- <link rel="shortcut icon" href="{{ url_for('static', filename='favicon.ico') }}">
- <link rel="stylesheet" href="/static/uikit_blurple.css" />
- <link rel="stylesheet" href="/static/style.css" />
+ <title>Python | {% block title %}{% endblock %}</title>
+ <meta charset="UTF-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ <script defer src="https://use.fontawesome.com/releases/v5.0.6/js/all.js"></script>
+ <script defer src="https://cdnjs.cloudflare.com/ajax/libs/uikit/3.0.0-beta.39/js/uikit.min.js"></script>
+ <link rel="shortcut icon" href="{{ url_for('static', filename='favicon.ico') }}">
+ <link rel="stylesheet" href="/static/uikit_blurple.css"/>
+ <link rel="stylesheet" href="/static/style.css"/>
+
+ <!-- OpenGraph metadata -->
+ <meta property="og:title" content="Python Discord">
+ <meta property="og:description" content="We're a large, friendly community focused around the Python programming language. Our community is open to those who wish to learn the language, as well as those looking to help others.">
+ <meta content="/static/logos/logo_discord.png" property="og:image">
+
+
{% endblock %}
</head>
<body class="page-{{ current_page }}">
{% include "main/navigation.html" %}
-{% if current_page != "index"%}
+{% if current_page != "index" %}
{% block beta_error %}
-<div class="uk-container uk-section" style="padding-top: 10px; padding-bottom: 10px;">
- <div class="uk-container uk-container-small">
- <div class="uk-alert-danger" uk-alert>
- <p>
- Please note: this site is under construction. What you see now may be vastly different
- from the final project state. Feel free to chat to us on Discord if you're curious!
- </p>
+ <div class="uk-container uk-section" style="padding-top: 10px; padding-bottom: 10px;">
+ <div class="uk-container uk-container-small">
+ <div class="uk-alert-danger" uk-alert>
+ <p>
+ Please note: this site is under construction. What you see now may be vastly different
+ from the final project state. Feel free to chat to us on Discord if you're curious!
+ </p>
+ </div>
+ </div>
</div>
- </div>
-</div>
{% endblock %}
{% endif %}
{% block content %}{% endblock %}