You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
1.5 KiB
Twig

<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="/css/main.css">
<link rel="alternate" type="application/rss+xml" title="eater" href="/rss.xml">
<title>{% block title %}{{ config.blog.title }}{% endblock %}</title>
{% block head %}{% endblock %}
</head>
<body>
<header>
<div class="title">
<h1>{{ config.blog.title }}</h1>
<span>{{ config.blog.description }}</span>
</div>
<nav>
<ul>
{%- for nav in config.nav|filter(n => n.before) -%}
{%- if nav.type == 'divider' -%}
<li class="divider"></li>
{%- else -%}
<li><a href="{{ nav.link }}">{{ nav.name }}</a></li>
{%- endif -%}
{%- endfor -%}
{%- for page in pages -%}
<li><a href="/{{ page.slug }}">{{ page.meta.title }}</a></li>
{%- endfor -%}
{%- for nav in config.nav|filter(n => not n.before) -%}
{%- if nav.type == 'divider' -%}
<li class="divider"></li>
{%- else -%}
<li><a href="{{ nav.link }}">{{ nav.name }}</a></li>
{%- endif -%}
{%- endfor -%}
</ul>
</nav>
</header>
<main>
{% block body %}{% endblock %}
</main>
</body>
</html>