-
Notifications
You must be signed in to change notification settings - Fork 0
/
layout.twig
97 lines (84 loc) · 3.75 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
<!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 }}" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
{# Render all other meta-tags from the system and from plugins #}
{{ assets.renderMeta() }}
{% block stylesheets %}
{# you can activate the tachyons css-library here with the twig-function
assets.activateTachyons()
#}
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Work+Sans:[email protected]&display=swap" />
<link rel="stylesheet" href="{{ base_url }}/themes/rensner/css/style.css" />
{# Render all other stylesheets from the system and from plugins #}
{{ assets.renderCSS() }}
{% endblock %}
</head>
<body>
<div class="container">
{# 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>
#}
<nav class="navbar">
<li class="logo">
<a href="{{ base_url }}" title="Home" class="nav-link">
{% if logo %}
<img src="{{ logo }}" class="logo-image" />
{% else %}
{{ settings.title }}
{% endif %}
</a>
</li>
{% include 'partials/navigation.twig' %}
</nav>
{# widgetized area somewhere for search-plugin and other plugins #}
<aside>
{% if widgets %}
<div class="widgetcontainer">
{% for index, widget in widgets %}
<div id="{{ index }}">{{ widget }}</div>
{% endfor %}
</div>
{% endif %}
</aside>
<section>
{% block content %}
{% for c in content %}
{{ c }}
{% endfor %}
{% endblock %}
</section>
<footer>
{% include 'partials/footer.twig' %}
</footer>
{% block javascripts %}
{# you can use typemillutilities for lazy loading of youtube vides
<script src="{{ base_url }}/system/author/js/typemillutils.js"></script>
<script>
typemillUtilities.start()
</script>
#}
<script src="{{ base_url }}/themes/rensner/js/script.js"></script>
{{ assets.renderJS() }}
{% endblock %}
</div>
</body>
</html>