slime-quest-web/site-source/_includes/base.njk
2025-03-15 15:56:02 -07:00

30 lines
829 B
Text

<!doctype html>
<html lang="en">
<head>
<title>{{ title }}</title>
<link rel="stylesheet" href="{{ '/style.css' | url }}">
</head>
<body>
<main>
<h1>{{ title or '==>' }}</h1>
<p><em>{{ subtitle }}</em><p>
{{ content | safe }}
{% set nextPage = collections.pages | getNextCollectionItem %}
{% if nextPage %}
<span class="next">&gt; <a href="{{ nextPage.url | url }}">{{ nextPage.data.title or '==>' }}</a></span>
{% else %}
<span class="next">&gt; _</span>
{% endif %}
<nav>
<ul>
<li><a href="{{ '/' | url }}">Start Over</a></li>
{% set previousPage = collections.pages | getPreviousCollectionItem %}
{% if previousPage %}
<li><a href="{{ previousPage.url }}">Go Back</a></li>
{% endif %}
<li><a href="/">Home</a></li>
</ul>
</nav>
</main>
</body>
</html>