kocandaci/templates/base.html
Emil Miler 7488b66720
All checks were successful
Build / build (push) Successful in 43s
Socials
2024-12-14 15:53:18 +01:00

52 lines
1.5 KiB
HTML

{% import "macros.html" as macros %}
<!DOCTYPE html>
<html lang="cs">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{% block title %}{{ config.title }}{% endblock %}</title>
<link rel="stylesheet" type="text/css" href="{{ get_url(path="/style.css") }}">
<link rel="stylesheet" type="text/css" href="{{ get_url(path="/icons/remixicon-4.0.0.css") }}">
{% block style %}{% endblock %}
</head>
<body>
<nav>
<div class="wrap">
<a href="{{ config.base_url }}"><img src="{{ get_url(path="/img/logo.svg") }}" class="logo"></a>
<ul>
{{ macros::nav_items() }}
</ul>
<div id="mobile-nav-button"></div>
</div>
<div class="mobile-nav">
<ul>
{{ macros::nav_items() }}
</ul>
</div>
</nav>
{% block content %}
{% endblock %}
<footer>
<div class="wrap">
<p>&copy; {{ now() | date(format="%Y") }} {{ config.title }}</p>
<div class="socials">
<a href="https://www.instagram.com/kocandaci/" target="_blank"><i class="ri-instagram-line"></i></a>
<a href="https://www.facebook.com/kocandaci" target="_blank"><i class="ri-facebook-box-line"></i></a>
<a href="https://www.youtube.com/channel/UCd5GIRz17QOQpCpg5PGi0PQ/featured" target="_blank"><i class="ri-youtube-line"></i></a>
</div>
</div>
</footer>
{% block script %}
{% endblock %}
<script>
document.querySelector("#mobile-nav-button").addEventListener("click", function() {
document.body.classList.toggle("mobile-nav-open");
});
</script>
</body>
</html>