10-print header works :)

I had to pin @thi.ng/hiccup to an earlier version because they stopped publishing CommonJS modules. There is [an issue tracking EcmaScript module support in 11ty](https://github.com/11ty/eleventy/issues/836) but it has not been fixed yet and other solutions broke unpredictably by messing with template inheritance.
This commit is contained in:
arne 2022-02-20 18:10:09 +01:00
commit 9024c00b1a
7 changed files with 67 additions and 20 deletions

View file

@ -1,21 +1,20 @@
<!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>
<title>{% if data.tite %}{{ data.title }} | {% endif %}{{ 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>
<header>{{ content | header | safe }}</header>
<aside>
<h1>{{ page.title }}</h1>
{% block navigation %}
{% block sidebar %}
{% endblock %}
</nav>
</aside>
<article>
{{ content | safe }}
</article>