Files
kursy-mirror/kursy/templates/base.html

59 lines
2.0 KiB
HTML

{% load static i18n wagtailcore_tags wagtailuserbar tailwind_tags allauth_ui %}
<!DOCTYPE html>
<html lang="en" data-theme="{% allauth_ui_theme %}">
<head>
<meta charset="utf-8" />
<title>
{% block title %}
{% if page.seo_title %}{{ page.seo_title }}{% else %}{{ page.title }}{% endif %}
{% endblock %}
{% block title_suffix %}
{% wagtail_site as current_site %}
{% if current_site and current_site.site_name %}- {{ current_site.site_name }}{% endif %}
{% endblock %}
</title>
{% if page.search_description %}
<meta name="description" content="{{ page.search_description }}" />
{% endif %}
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
{# Force all links in the live preview panel to be opened in a new tab #}
{% if request.in_preview_panel %}
<base target="_blank">
{% endif %}
{# Global stylesheets #}
<link rel="stylesheet" type="text/css" href="{% static 'css/kursy.css' %}">
<link rel="stylesheet" href="{% static 'allauth_ui/output.css' %}">
{% tailwind_css %}
{% block extra_css %}
{# Override this in templates to add extra stylesheets #}
{% endblock %}
{% block extra_head %}
{% endblock extra_head %}
</head>
<body class="flex grow flex-col min-h-screen {% block body_class %}{% endblock %}">
{% include "header.html" %}
{% block body %}
{% block content %}
{% endblock content %}
{% endblock body %}
{# Global javascript #}
<script type="text/javascript" src="{% static 'js/kursy.js' %}"></script>
{% block extra_body %}
{% endblock extra_body %}
{% block extra_js %}
{# Override this in templates to add extra javascript #}
{% endblock %}
{% wagtailuserbar %}
</body>
</html>