Set up a basic page hierarchy

This commit is contained in:
arne 2022-02-20 13:18:07 +01:00
commit 9001771f1c
10 changed files with 54 additions and 20 deletions

24
src/_includes/root.njk Normal file
View file

@ -0,0 +1,24 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ page.title }}</title>
<link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>🌌</text></svg>">
<link rel="stylesheet" href="{{ '/assets/style.css' | url }}" />
</head>
<body>
<main class="{{ page.url | pageClasses }}">
<header></header>
<nav>
<h1>{{ page.title }}</h1>
{% block navigation %}
{% endblock %}
</nav>
<article>
{{ content | safe }}
</article>
</main>
</body>
</html>