summaryrefslogtreecommitdiffstats
path: root/templates/page.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/page.html')
-rw-r--r--templates/page.html25
1 files changed, 17 insertions, 8 deletions
diff --git a/templates/page.html b/templates/page.html
index 7120590..786b800 100644
--- a/templates/page.html
+++ b/templates/page.html
@@ -1,21 +1,30 @@
-{% extends "base.html" %}
-{% import "macros.html" as macros %}
-{% block content %}
+{% extends "base.html" %} {% import "macros.html" as macros %} {% block content
+%}
<h1>
{{ page.title }}<br />
+ {% if page.date %}
<small>({{ page.date }})</small>
+ {% endif %}
<small>[{{ page.extra.kind }}]</small>
</h1>
-{{ page.content | replace(from="<!-- toc -->", to=macros::toc(page=page)) | safe }}
+{{ page.content | replace(from="<!-- toc -->", to=macros::toc(page=page)) | safe
+}}
<nav class="post-nav" aria-label="Post navigation">
{% if page.higher %}
- <div class="post-nav-left"><a class="post-nav-link" href="{{ page.higher.permalink }}">← {{ page.higher.title }}</a></div>
- {% endif %}
- {% if page.lower %}
- <div class="post-nav-right"><a class="post-nav-link" href="{{ page.lower.permalink }}">{{ page.lower.title }} →</a></div>
+ <div class="post-nav-left">
+ <a class="post-nav-link" href="{{ page.higher.permalink }}"
+ >← {{ page.higher.title }}</a
+ >
+ </div>
+ {% endif %} {% if page.lower %}
+ <div class="post-nav-right">
+ <a class="post-nav-link" href="{{ page.lower.permalink }}"
+ >{{ page.lower.title }} →</a
+ >
+ </div>
{% endif %}
</nav>