summaryrefslogtreecommitdiffstats
path: root/templates/page.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/page.html')
-rw-r--r--templates/page.html56
1 files changed, 56 insertions, 0 deletions
diff --git a/templates/page.html b/templates/page.html
new file mode 100644
index 0000000..19f42a7
--- /dev/null
+++ b/templates/page.html
@@ -0,0 +1,56 @@
+{% extends "base.html" %} {% block content %}
+
+<h1>
+ {{ page.title }}<br />
+ <small>{{ page.date }}</small>
+ <small>[{{ page.extra.kind }}]</small>
+</h1>
+
+{% block lede %}
+<p>{{ page.description }}</p>
+{% endblock %}
+
+{% block toc %}
+<ul>
+ {% for h1 in page.toc %}
+ <li><a href="#{{ h1.id }}">{{ h1.title }}</a></li>
+ <ul>
+ {% for h2 in h1.children %}
+ <li><a href="#{{ h2.id }}">{{ h2.title }}</a></li>
+ <ul>
+ {% for h3 in h2.children %}
+ <li><a href="#{{ h3.id }}">{{ h3.title }}</a></li>
+ {% endfor %}
+ </ul>
+ {% endfor %}
+ </ul>
+ {% endfor %}
+</ul>
+{% endblock %}
+
+{{ page.content | safe }}
+
+<nav class="post-nav" aria-label="Post navigation">
+ {% if page.lower %}
+ <div class="post-nav-left"><a class="post-nav-link" href="{{ page.lower.permalink }}">← {{ page.lower.title }}</a></div>
+ {% endif %}
+ {% if page.higher %}
+ <div class="post-nav-right"><a class="post-nav-link" href="{{ page.higher.permalink }}">{{ page.higher.title }} →</a></div>
+ {% endif %}
+</nav>
+
+<div style="display: none" class="h-entry">
+ <div class="e-content p-name">{{ page.title }}</div>
+ <a rel="author" class="p-author h-card" href="https://jan.systems">
+ <img
+ class="u-photo"
+ src="https://jan.systems/files/Jan_Tuomi_headshot.jpg"
+ loading="lazy"
+ />
+ Jan Tuomi
+ </a>
+ <a class="u-url" href="https://jan.systems/{{ page.path }}">
+ Published <time class="dt-published">{{ page.date }}</time>
+ </a>
+</div>
+{% endblock %}