aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/templates/base/base.html
blob: 9d114bd84aa913b24252b8cfc8a8bc11ac02681d (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
{# Base template, with a few basic style definitions. #}
{% load django_simple_bulma %}
{% load sekizai_tags %}
{% load static %}

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
  <meta name="description"
        content="{% block meta-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 %}">

  <title>Python Discord | {% block title %}Website{% endblock %}</title>

  {% bulma %}

  {# Font-awesome here is defined explicitly so that we can have Pro #}
  <script src="https://kit.fontawesome.com/ae6a3152d8.js"></script>

  <link rel="stylesheet" href="{% static "css/base/base.css" %}">
  <link rel="stylesheet" href="{% static "css/base/notification.css" %}">
  {% block head %}{% endblock %}

  {% render_block "css" %}
</head>
<body class="site">

<main class="site-content">
  {% if messages %}
    <div class="messages">
      {% for message in messages %}
        <div class="notification {% if message.tags %}is-{{ message.tags }}{% endif %}">
          <button class="delete"></button>

          {{ message }}
        </div>
      {% endfor %}
    </div>
  {% endif %}

  {% block content %}
    {{ block.super }}
  {% endblock %}
</main>

{% block site_footer %}
  {% include "base/footer.html" %}
{% endblock %}

{% render_block "js" %}
</body>
</html>