Set up a basic page hierarchy
This commit is contained in:
parent
29fca76702
commit
9001771f1c
10 changed files with 54 additions and 20 deletions
24
src/_includes/root.njk
Normal file
24
src/_includes/root.njk
Normal 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>
|
||||
Loading…
Add table
Add a link
Reference in a new issue