aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/templates/base
diff options
context:
space:
mode:
authorGravatar Gareth Coles <[email protected]>2019-04-10 14:44:46 +0100
committerGravatar Gareth Coles <[email protected]>2019-04-10 14:44:46 +0100
commite85d32920b64ce92ec2fe02d955157285b3504ee (patch)
tree607d8d345005aa2e4d13f9a3a54877b06a32b9fd /pydis_site/templates/base
parentNavbar: No need for example content (diff)
Single base template, no content in it
Diffstat (limited to 'pydis_site/templates/base')
-rw-r--r--pydis_site/templates/base/base-hero.html50
-rw-r--r--pydis_site/templates/base/base.html14
-rw-r--r--pydis_site/templates/base/footer.html9
3 files changed, 13 insertions, 60 deletions
diff --git a/pydis_site/templates/base/base-hero.html b/pydis_site/templates/base/base-hero.html
deleted file mode 100644
index 652662e0..00000000
--- a/pydis_site/templates/base/base-hero.html
+++ /dev/null
@@ -1,50 +0,0 @@
-{% load django_simple_bulma %}
-{% 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 #}
- <link rel="stylesheet"
- href="https://pro.fontawesome.com/releases/v5.7.2/css/all.css"
- integrity="sha384-6jHF7Z3XI3fF4XZixAuSu0gGKrXwoX/w3uFPxC56OtjChio7wtTGJWRW53Nhx6Ev"
- crossorigin="anonymous"
- >
-
- {% block head %}{% endblock %}
-</head>
-<body>
-
-<section class="hero is-primary">
- <div class="hero-head">
- {% block hero-head %}{% endblock %}
- </div>
- <div class="hero-body">
- {% block hero-body %}{% endblock %}
- </div>
- <div class="hero-foot">
- {% block hero-foot %}{% endblock %}
- {% include "base/navbar.html" with active_item=False dropdowns=True icon_weight="fas" use_logo=False %}
- </div>
-</section>
-
-{% block content %}{% endblock %}
-
-<footer class="footer has-background-dark has-text-light">
- <div class="content has-text-centered">
- <p>
- &copy; 2019 Python Discord | Built with Django and Bulma
- </p>
- </div>
-</footer>
-</body>
-</html>
diff --git a/pydis_site/templates/base/base.html b/pydis_site/templates/base/base.html
index 46a273ec..e1cd0be2 100644
--- a/pydis_site/templates/base/base.html
+++ b/pydis_site/templates/base/base.html
@@ -24,16 +24,10 @@
{% block head %}{% endblock %}
</head>
<body>
-{% include "base/navbar.html" with active_item=True dropdowns=True icon_weight="fal" use_logo=True %}
-{% block content %}{% endblock %}
-
-<footer class="footer has-background-dark has-text-light">
- <div class="content has-text-centered">
- <p>
- &copy; 2019 Python Discord | Built with Django and Bulma
- </p>
- </div>
-</footer>
+
+{% block content %}
+ {{ block.super }}
+{% endblock %}
</body>
</html>
diff --git a/pydis_site/templates/base/footer.html b/pydis_site/templates/base/footer.html
new file mode 100644
index 00000000..b14bd82c
--- /dev/null
+++ b/pydis_site/templates/base/footer.html
@@ -0,0 +1,9 @@
+<footer class="footer has-background-dark has-text-light">
+ <div class="content has-text-centered">
+ <p>
+ &copy; 2019 Python Discord | Built with Django and Bulma
+ </p>
+ </div>
+</footer>
+
+<!-- vim: set ft=htmldjango: -->