website/website/common/templates/base.html

61 lines
1.8 KiB
HTML
Raw Normal View History

{% load static wagtailcore_tags wagtailuserbar navbar_tags footer_tags plausible_wagtail favicon_tags sri 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 %}
</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
2022-10-05 14:17:00 +01:00
{% if not SEO_INDEX %}<meta name="robots" content="noindex" />{% endif %}
2022-08-27 23:44:56 +01:00
{% favicon_meta %}
2022-08-27 23:44:56 +01:00
2022-08-17 08:45:15 +01:00
{% block extra_head %}{% endblock %}
2022-06-09 08:36:29 +01:00
<link rel="alternate" type="application/rss+xml" href="{% url 'feed' %}" />
<link rel="me" href="https://{{ ACTIVITYPUB_HOST }}/@jake" />
2023-07-02 17:18:57 +01:00
2022-09-03 16:35:39 +01:00
<script async type="text/javascript" src="{% static 'js/ie11-deterrent.js' %}" integrity="{% sri_integrity_static 'js/ie11-deterrent.js' %}"></script>
2022-09-01 08:36:39 +01:00
{% sri_static "css/base.css" %}
{% sri_static "contrib/fontawesome/css/all.min.css" %}
{% sri_static "contrib/fira-code/latin.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 1800 "navbar" request.is_preview %}
{% navbar %}
{% endcache %}
2022-06-12 17:21:46 +01:00
{% block main %}
<main>
{% block main_content %}{% endblock %}
</main>
{% endblock %}
2022-06-09 08:36:29 +01:00
{% cache 1800 "footer" request.is_preview %}
{% footer %}
{% endcache %}
{# Not async to avoid bright flashes #}
2022-10-29 15:19:58 +01:00
{% sri_static "js/dark-mode.js" %}
2022-06-12 21:08:11 +01:00
<script async defer type="text/javascript" src="{% static 'js/base.js' %}" integrity="{% sri_integrity_static 'js/base.js' %}"></script>
2022-06-12 21:08:11 +01:00
{% block extra_js %}{% endblock %}
{% block plausible %}
{% if not request.user.is_authenticated or not request.is_preview %}
{% plausible %}
{% endif %}
{% endblock %}
2022-06-12 21:08:11 +01:00
</body>
2022-06-09 08:36:29 +01:00
</html>