homepage/_includes/layouts/base.njk

84 lines
2.6 KiB
Text

<!doctype html>
<html lang="{{ metadata.language }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>{{ title or metadata.title }}</title>
<meta name="description" content="{{ description or metadata.description }}">
<link rel="stylesheet" href="{{ '/assets/css/base.css' | url }}">
<link rel="alternate" href="{{ metadata.feed.path | url }}" type="application/atom+xml" title="{{ metadata.title }}">
<link rel="alternate" href="{{ metadata.jsonfeed.path | url }}" type="application/json" title="{{ metadata.title }}">
{% block extraHead %}{% endblock %}
</head>
<body>
<header class="site-header">
<a class="site-logo" href="{{ '/' | url }}">{{ metadata.title }}</a>
<details class="site-mobile-navigation">
<summary>Menü</summary>
<nav class="site-navigation">
<ul>
{% for entry in collections.topNavigation | eleventyNavigation %}
<li{% if entry.url == page.url %} class="active"{% endif %}>
<a href="{{ entry.url }}">
{{ entry.title }}
</a>
</li>
{% endfor %}
</ul>
</nav>
</details>
<nav class="site-navigation horizontal">
<ul>
{% for entry in collections.topNavigation | eleventyNavigation %}
<li{% if entry.url == page.url %} class="active"{% endif %}>
<a href="{{ entry.url }}">
{{ entry.title }}
</a>
</li>
{% endfor %}
</ul>
</nav>
</header>
<main id="content" {% if contentClass %} class="{{ contentClass }}"{% endif %}>
{{ content | safe }}
</main>
<footer class="page-section footer">
<div class="page-content site-footer">
<div>
<p>
{{ metadata.author.name }}
{% for line in (metadata.author.address or []) %}
<br />
{{ line }}
{% endfor %}
</p>
<p>
{{ metadata.author.email }}
</p>
</div>
<div>
<nav class="site-navigation">
<ul>
{% for entry in collections.bottomNavigation | eleventyNavigation %}
<li{% if entry.url == page.url %} class="active"{% endif %}>
<a href="{{ entry.url }}">
{{ entry.title }}
</a>
</li>
{% endfor %}
</ul>
</nav>
</div>
</div>
</footer>
</body>
</html>