-
Notifications
You must be signed in to change notification settings - Fork 36
/
Copy pathbase.html
86 lines (70 loc) · 2.65 KB
/
base.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
{% load i18n static dsfr_tags wagtailuserbar wagtailsettings_tags sass_tags %}
{% get_settings %}
{% with SiteConfig=settings.content_manager.CmsDsfrConfig %}
<!DOCTYPE html>
<html lang="{% get_current_language as LANGUAGE_CODE %}{{ LANGUAGE_CODE }}"
{% if SiteConfig.theme_modale_button %}data-fr-scheme="system"{% else %}data-fr-scheme="light"{% endif %}
{% if SiteConfig.mourning %}data-fr-mourning{% endif %}>
<head>
<meta charset="utf-8" />
<meta name="viewport"
content="width=device-width, initial-scale=1, shrink-to-fit=no" />
{% block title %}
<title>
{% if title %}{{ title }} —{% endif %}
{{ SiteConfig.site_title }}</title>
{% endblock title %}
{% block description %}
{% endblock description %}
{% dsfr_favicon %}
{% dsfr_css %}
<link href="{% static 'dsfr/dist/utility/utility.min.css' %}"
rel="stylesheet"
type="text/css" />
<link href="{% sass_src 'css/style.sass' %}"
rel="stylesheet"
type="text/css" />
{% block extra_css %}
{% endblock extra_css %}
{% block cookie_banner %}
{% include "blocks/cookie_banner.html" %}
{% endblock cookie_banner %}
{% block tracking %}
{% if settings.content_manager.CustomScriptsSettings.head_scripts %}
{{ settings.content_manager.CustomScriptsSettings.head_scripts|safe }}
{% endif %}
{% endblock tracking %}
{% block social_media %}
{% endblock social_media %}
</head>
<body>
{% block skiplinks %}
{% dsfr_skiplinks skiplinks %}
{% endblock skiplinks %}
{% wagtailuserbar %}
{% include "blocks/header.html" %}
{% dsfr_theme_modale %}
{% if SiteConfig.notice_title or SiteConfig.notice_description %}
{% include "blocks/notice.html" %}
{% endif %}
<main id="content" role="main">
{% block content %}
{% endblock content %}
</main>
{% block follow_newsletter_social_media %}
{% if SiteConfig.show_newsletter_and_social_block %}
{% include "blocks/follow.html" %}
{% endif %}
{% endblock follow_newsletter_social_media %}
{% include "blocks/footer.html" %}
{% dsfr_js nonce=request.csp_nonce %}
{% block extra_js %}
{% endblock extra_js %}
{% block body_tracking_scripts %}
{% if settings.content_manager.CustomScriptsSettings.body_scripts %}
{{ settings.content_manager.CustomScriptsSettings.body_scripts|safe }}
{% endif %}
{% endblock body_tracking_scripts %}
</body>
</html>
{% endwith %}