<!doctype html>
<html lang="{{ locale }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
{{ head() }}
</head>
<body>
<main>
<article>
<h1>{{ post.title }}</h1>
<p>{% if post.author %}{{ post.author.name }} · {% endif %}{{ post.date_formatted }} · {{ post.reading_time }} min</p>
{% if post.headings %}
<nav>
{% for heading in post.headings %}<a href="#{{ heading.id }}">{{ heading.text }}</a> {% endfor %}
</nav>
{% endif %}
{{ post.html|safe }}
</article>
{% if related %}
<aside>
{% for other in related %}<a href="{{ other.url }}">{{ other.title }}</a> {% endfor %}
</aside>
{% endif %}
<nav>
{% for code, url in alternates %}<a href="{{ url }}" hreflang="{{ code }}">{{ code }}</a> {% endfor %}
</nav>
</main>
</body>
</html>