website/templates/base.html

52 lines
1.5 KiB
HTML
Raw Normal View History

{% load static wagtailcore_tags wagtailuserbar navbar_tags footer_tags cache %}
2022-06-09 08:36:29 +01:00
<!DOCTYPE html>
2022-08-03 20:22:02 +01:00
<html lang="en-GB">
2022-06-12 21:08:11 +01:00
<head>
<meta charset="utf-8" />
<title>
{% block title %}{% endblock %}
{% block title_suffix %}
2022-08-03 20:22:02 +01:00
{% wagtail_site as current_site %}
{% if current_site and current_site.site_name %}:: {{ current_site.site_name }}{% endif %}
2022-06-12 21:08:11 +01:00
{% endblock %}
</title>
<meta name="description" content="" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
2022-06-09 08:36:29 +01:00
2022-06-12 21:08:11 +01:00
<link rel="stylesheet" type="text/css" href="{% static 'css/base.css' %}">
<link rel="stylesheet" type="text/css" href="{% static 'contrib/fontawesome/css/all.min.css' %}">
2022-07-04 20:36:19 +01:00
<link rel="stylesheet" type="text/css" href="{% static 'contrib/fira-code/fira_code.css' %}">
2022-06-09 08:36:29 +01:00
2022-06-12 21:08:11 +01:00
{% block extra_css %}{% endblock %}
</head>
2022-06-09 08:36:29 +01:00
2022-06-12 21:08:11 +01:00
<body class="{% block body_class %}{% endblock %}">
{% wagtailuserbar %}
2022-06-09 08:36:29 +01:00
{% cache 3600 "navbar" %}
2022-08-03 20:37:34 +01:00
{% navbar %}
{% endcache %}
2022-06-12 17:21:46 +01:00
{% block main %}
<main>
{% block content %}{% endblock %}
</main>
{% endblock %}
2022-06-09 08:36:29 +01:00
{% cache 3600 "footer" %}
2022-08-03 20:37:34 +01:00
{% footer %}
{% endcache %}
2022-06-12 21:08:11 +01:00
<script async defer type="text/javascript" src="{% static 'js/base.js' %}"></script>
2022-07-31 15:28:48 +01:00
<script async defer type="text/javascript" src="{% static 'contrib/htmx/htmx.min.js' %}"></script>
2022-06-12 21:08:11 +01:00
{% block darkmode %}
<script type="text/javascript" src="{% static 'js/darkreader.js' %}"></script>
2022-06-12 21:08:11 +01:00
{% endblock %}
{% block extra_js %}{% endblock %}
</body>
2022-06-09 08:36:29 +01:00
</html>