-
Notifications
You must be signed in to change notification settings - Fork 1
/
layout.njk
59 lines (51 loc) · 1.61 KB
/
layout.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>{{ title }}</title>
<!-- capture the CSS content as a Nunjucks variable -->
{% set css %}
{% include "css/fonts.css" %}
{% include "css/elements.css" %}
{% include "css/common.css" %}
{% if pageTaxonomy == 'home' %}
{% include "css/components/cards-grid.css" %}
{% include "css/components/card.css" %}
{% endif %}
{% if pageTaxonomy == 'platform' %}
{% include "css/components/cards-grid.css" %}
{% include "css/components/card.css" %}
{% endif %}
{% if pageTaxonomy == 'content' %}
{% include "css/components/list.css" %}
{% endif %}
{% endset %}
<!-- feed it through our cssmin filter to minify -->
<style>
{{ css | cssmin | safe }}
</style>
<link rel="icon" href="/favicon.ico" sizes="any">
<link rel="icon" href="/icon.svg" type="image/svg+xml">
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
</head>
<body>
<header class="layout">
<a href="/" class="logo">{% include 'html/logo.html' %}</a>
</header>
<main>
<h1 class="hero {% if themeModifier %}hero--{{ themeModifier }}{% endif %}"><span class="layout">{{ pageTitle }}</span></h1>
<div class="layout">
{{ content | safe }}
</div>
</main>
<div class="layout">
<aside>
{% changelog filePath=page.inputPath %}
</aside>
</div>
<footer>
<small>© Barnardo’s</small>
</footer>
</body>
</html>