61 lines
1.8 KiB
HTML
61 lines
1.8 KiB
HTML
{% load static wagtailcore_tags wagtailuserbar navbar_tags footer_tags plausible_wagtail favicon_tags sri cache %}
|
|
|
|
<!DOCTYPE html>
|
|
<html lang="en-GB">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<title>
|
|
{% block title %}{% endblock %}
|
|
</title>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
{% if not SEO_INDEX %}<meta name="robots" content="noindex" />{% endif %}
|
|
|
|
{% favicon_meta %}
|
|
|
|
{% block extra_head %}{% endblock %}
|
|
|
|
<link rel="alternate" type="application/rss+xml" href="{% url 'feed' %}" />
|
|
|
|
<link rel="me" href="https://{{ ACTIVITYPUB_HOST }}/@jake" />
|
|
|
|
<script async type="text/javascript" src="{% static 'js/ie11-deterrent.js' %}" integrity="{% sri_integrity_static 'js/ie11-deterrent.js' %}"></script>
|
|
|
|
{% sri_static "css/base.css" %}
|
|
{% sri_static "contrib/fontawesome/css/all.min.css" %}
|
|
{% sri_static "contrib/fira-code/latin.css" %}
|
|
|
|
{% block extra_css %}{% endblock %}
|
|
</head>
|
|
|
|
<body class="{% block body_class %}{% endblock %}">
|
|
{% wagtailuserbar %}
|
|
|
|
{% cache 1800 "navbar" request.is_preview %}
|
|
{% navbar %}
|
|
{% endcache %}
|
|
|
|
{% block main %}
|
|
<main>
|
|
{% block main_content %}{% endblock %}
|
|
</main>
|
|
{% endblock %}
|
|
|
|
{% cache 1800 "footer" request.is_preview %}
|
|
{% footer %}
|
|
{% endcache %}
|
|
|
|
{# Not async to avoid bright flashes #}
|
|
{% sri_static "js/dark-mode.js" %}
|
|
|
|
<script async defer type="text/javascript" src="{% static 'js/base.js' %}" integrity="{% sri_integrity_static 'js/base.js' %}"></script>
|
|
|
|
{% block extra_js %}{% endblock %}
|
|
|
|
{% block plausible %}
|
|
{% if not request.user.is_authenticated or not request.is_preview %}
|
|
{% plausible %}
|
|
{% endif %}
|
|
{% endblock %}
|
|
</body>
|
|
</html>
|