aboutsummaryrefslogtreecommitdiffstats
path: root/templates/main/base.html
blob: 2a3f295ce8794a68622e69c2376e0a35bb3592d5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<!DOCTYPE html>
<html lang="en">
    <head>
        {% block head %}
            <title>Python Discord | {% block title %}{% endblock %}</title>
            <meta charset="UTF-8">
            <meta name="viewport" content="width=device-width, initial-scale=1">

            <!-- Prevent Flash of Unstyled Content -->
            <script src="{{ static_file('js/fouc.js') }}"></script>

            <!-- Other JS loads -->
            <script src="https://cdnjs.cloudflare.com/ajax/libs/uikit/3.0.0-beta.39/js/uikit.min.js"></script>
            <script src="https://cdn.jsdelivr.net/npm/flatpickr"></script>

            <!-- Stylesheets -->
            <link rel="shortcut icon" href="{{ static_file('favicon.ico') }}">
            <link rel="stylesheet" href="{{ static_file('css/uikit_blurple.css') }}"/>
            <link rel="stylesheet" href="{{ static_file('css/style.css') }}"/>
            <link rel="stylesheet" href="{{ static_file('css/bundled/pygments-monokai.css') }}"/>
            <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/flatpickr/dist/flatpickr.min.css">

            <!-- OpenGraph metadata -->
            <meta property="og:title" content="Python Discord | {% block og_title %}{% endblock %}">
            <meta property="og:description" content="{% block og_description %}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.{% endblock %}">
            <meta content="/static/logos/logo_discord.png" property="og:image">
        {% endblock %}
        {% block extra_head %}

        {% endblock %}
    </head>
    <body class="{% block page_classes %}{% endblock page_classes %}
                 page-{{ current_page.replace(".", "-") }}
                 blueprint-{{ blueprint.replace(".", "-") }}">
        {% if current_page == "main.index" %}
        <div class="uk-offcanvas-content uk-section-primary">
        {% else %}
        <div class="uk-offcanvas-content">
        {% endif %}
            {% include "main/navigation.html" %}
            {% block content %}{% endblock %}
        </div>

        <footer>
            <div class="uk-section uk-section-secondary uk-container-medium uk-text-meta">
                <div class="uk-text-center uk-text-meta">
                    <p>
                        This website uses <a href="https://python.org">Python</a> and
                        <a href="http://flask.pocoo.org/">Flask</a>, and was developed collaboratively on
                        <a href="https://github.com/discord-python/site">GitHub</a>.
                        <br />
                        For privacy &amp; GDPR-related info, please <a href="{{ url_for("main.about.privacy") }}">see this page</a>.
                    </p>
                </div>
            </div>
        </footer>

        <script src='{{ static_file('js/countdown.js') }}'></script>
    </body>
</html>