-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlayout.twig
106 lines (78 loc) · 3.74 KB
/
layout.twig
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
<!DOCTYPE html>
<html lang="{{ settings.langattr | default('en') }}">
<head>
<meta charset="UTF-8">
<title>{% block title %}{% endblock %}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="{{ metatabs.meta.description }}" />
<meta name="author" content="{{ metatabs.meta.author }}" />
<meta name="generator" content="TYPEMILL" />
<link rel="canonical" href="{{ item.urlAbs }}" />
{{ assets.renderMeta() }}
{% block stylesheets %}
<link rel="stylesheet" href="{{ base_url }}/themes/aboutme/css/style.css" />
{{ assets.renderCSS() }}
{% endblock %}
</head>
<body class="bt bw5 b--primary ma0 dark sans-serif">
<!-- JUST IN CASE YOU WANT TO USE SVG-ICONS, e.g. FROM ICOMOON -->
<svg style="position: absolute; width: 0; height: 0; overflow: hidden" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<defs>
<symbol id="icon-link" viewBox="0 0 32 32">
<title>link</title>
<path d="M13.757 19.868c-0.416 0-0.832-0.159-1.149-0.476-2.973-2.973-2.973-7.81 0-10.783l6-6c1.44-1.44 3.355-2.233 5.392-2.233s3.951 0.793 5.392 2.233c2.973 2.973 2.973 7.81 0 10.783l-2.743 2.743c-0.635 0.635-1.663 0.635-2.298 0s-0.635-1.663 0-2.298l2.743-2.743c1.706-1.706 1.706-4.481 0-6.187-0.826-0.826-1.925-1.281-3.094-1.281s-2.267 0.455-3.094 1.281l-6 6c-1.706 1.706-1.706 4.481 0 6.187 0.635 0.635 0.635 1.663 0 2.298-0.317 0.317-0.733 0.476-1.149 0.476z"></path>
<path d="M8 31.625c-2.037 0-3.952-0.793-5.392-2.233-2.973-2.973-2.973-7.81 0-10.783l2.743-2.743c0.635-0.635 1.664-0.635 2.298 0s0.635 1.663 0 2.298l-2.743 2.743c-1.706 1.706-1.706 4.481 0 6.187 0.826 0.826 1.925 1.281 3.094 1.281s2.267-0.455 3.094-1.281l6-6c1.706-1.706 1.706-4.481 0-6.187-0.635-0.635-0.635-1.663 0-2.298s1.663-0.635 2.298 0c2.973 2.973 2.973 7.81 0 10.783l-6 6c-1.44 1.44-3.355 2.233-5.392 2.233z"></path>
</symbol>
</defs>
</svg>
<aside class="pl3 pr3 mb2 mt2 w-100 mw-800-l mauto-l">
{% if widgets %}
<div class="widgetcontainer">
{% for index,widget in widgets %}
<div id="{{ index }}">
{{ widget }}
</div>
{% endfor %}
</div>
{% endif %}
</aside>
<header class="flex justify-between pr3 pl3 mw-800-l w-100 mauto-l">
<div>
<p>
{% if logo %}
<a href="{{ base_url }}"><img src="{{ base_url }}/{{ logo }}" alt="Logo for {{settings.title}}" class="logo-image"/></a>
{% else %}
<a href="{{ base_url }}" class="{{ settings.themes.aboutme.logostyle | default('logo-pure') }}">{{ settings.themes.aboutme.logotext }}</a>
{% endif %}
</p>
</div>
<nav class="mainnav" aria-label="Menu">
<!-- burger menu controlled by invisible checkbox -->
<input type="checkbox" id="burger" class="dn">
<label for="burger" class="burgerbutton">☰</label>
<ul class="menu list">
{% for element in navigation %}
{% if element.activeParent %}
<li class="{{ element.elementType }} active parent pa2 ma2">
{% elseif element.active %}
<li class="{{ element.elementType }} active pa2 ma2">
{% else %}
<li class="{{ element.elementType }} pa2 ma2">
{% endif %}
<a class="link dark hover-primary" href="{{ element.urlAbs }}">{{ element.name }}</a>
</li>
{% endfor %}
</ul>
</nav>
</header>
{% block content %}{% endblock %}
<footer class="dib bg-light w-100 fw-100">
{% include 'partials/footer.twig' %}
</footer>
{% block javascripts %}
<script src="{{ base_url }}/system/author/js/typemillutils.js?20200418"></script>
<script>typemillUtilities.start();</script>
{{ assets.renderJS() }}
{% endblock %}
</body>
</html>