homepage/templates/default.twig

54 lines
1.7 KiB
Twig

<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ctdo - {{ title }}</title>
{% for item in css %}
<link rel="stylesheet" href="/css/{{ item }}.css">
{% endfor %}
</head>
<body>
<!-- <div class="newBanner"><a href="https://www.chaostreff-dortmund.de/rundgang/" target="_blank">Rundgang</a></div> -->
<header>
<a onclick="ToggleNav()" id="navToggle">=</a>
<nav>
<ul>
{% for item in nav %}
<li>
{% if item.active %}
<a href="?page={{ item.page }}" class="active">{{ item.name }}</a>
{% else %}
<a href="?page={{ item.page }}">{{ item.name }}</a>
{% endif %}
</li>
{% endfor %}
</ul>
</nav>
</header>
<main>
<p class="text-left">Raumstatus: {{ raumstatus | raw }}</p>
{{ main | raw }}
</main>
<footer>
<nav>
<ul>
<li> <a href="/?page=impressum">impressum</a> </li>
<li> <a href="/?page=datenschutz">datenschutz</a> </li>
<li> <a href="https://git.ctdo.de/xoy/ctdo.de/_edit/main/{{ file_to_edit }}" target="_blank">seite bearbeiten</a> </li>
</ul>
</nav>
</footer>
<script src="js/nav.js"></script>
</body>
</html>