-
Notifications
You must be signed in to change notification settings - Fork 5
/
base.njk
43 lines (38 loc) · 1.65 KB
/
base.njk
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
<!doctype html>
<html lang="{{ locale }}" dir="{{ supportedLanguages[locale].dir }}">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width">
<title>{% if title %} {{ title }} | {% endif %} {{ site[locale].name }}</title>
{% include "partials/global/stylesheets.njk" %}
{% include "partials/global/meta.njk" %}
<link rel="alternate" type="application/atom+xml" href="{{ config.url }}{% if locale !== defaultLanguage %}/{{ locale }}{% endif %}/feed.xml" title="{% _ locale, "%s RSS feed", site[locale].name %}">
{% include "partials/global/icons.njk" %}
<link rel="manifest" href="/manifest.webmanifest">
{% include "partials/global/scripts.njk" %}
</head>
<body class="{{ bodyClass if bodyClass else "page" }}">
{% uioTemplate %}
{% include "partials/global/header.njk" %}
<main>
<article>
{% block pageHeader %}
<header>
<h1>{{ title }}</h1>
</header>
{% endblock %}
<nav class="flc-toc-tocContainer"></nav>
{% block content %}
<div class="content">
{{ content | safe }}
</div>
{% endblock %}
</article>
</main>
{% include "partials/global/footer.njk" %}
{% uioInit supportedLanguages[locale].uioSlug, supportedLanguages[locale].dir %}
{% if page.url === "/" %}
<script type="text/javascript" src="https://identity.netlify.com/v1/netlify-identity-widget.js"></script>
{% endif %}
</body>
</html>