diff options
| author | 2018-03-01 16:31:38 +0000 | |
|---|---|---|
| committer | 2018-03-01 17:31:38 +0100 | |
| commit | 4969415b99b5a90bc976ff6fcb5f0f327e2d7c96 (patch) | |
| tree | 4ffb016a77c3854002d6098cfe0cf4b429fe11bd | |
| parent | Fix spacing issues (diff) | |
OpenGraph metadata (#32)
Better embedding for the url to the site.
| -rw-r--r-- | static/logos/logo_discord.png | bin | 0 -> 63590 bytes | |||
| -rw-r--r-- | templates/main/base.html | 43 | 
2 files changed, 25 insertions, 18 deletions
| diff --git a/static/logos/logo_discord.png b/static/logos/logo_discord.pngBinary files differ new file mode 100644 index 00000000..2bf74ffd --- /dev/null +++ b/static/logos/logo_discord.png 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 %} | 
