aboutsummaryrefslogtreecommitdiff
path: root/templates/page.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/page.html')
-rw-r--r--templates/page.html44
1 files changed, 44 insertions, 0 deletions
diff --git a/templates/page.html b/templates/page.html
new file mode 100644
index 0000000..cef35d9
--- /dev/null
+++ b/templates/page.html
@@ -0,0 +1,44 @@
+{% extends "base.html" %}
+
+{% block html_title %}{{ page.title }} | {{ config.title }}{% endblock html_title %}
+
+{% block content %}
+ <article lang="{{ lang }}">
+ <header>
+ <h1 class="title">
+ <a href="{{ page.permalink }}">{{ page.title }}</a>
+ </h1>
+ {% if not page.extra.raw %}
+ <p class="post-meta">{{ posts::meta(page=page) }}</p>
+ {% endif %}
+ </header>
+ {% if page.toc and not page.extra.no_toc %}
+ <h3>Table of Contents</h3>
+ <ul>
+ {% for h1 in page.toc %}
+ <li>
+ <a href="{{ h1.permalink | safe }}">{{ h1.title }}</a>
+ {% if h1.children %}
+ <ul>
+ {% for h2 in h1.children %}
+ <li>
+ <a href="{{ h2.permalink | safe }}">{{ h2.title }}</a>
+ </li>
+ {% endfor %}
+ </ul>
+ {% endif %}
+ </li>
+ {% endfor %}
+ </ul>
+ {% endif %}
+ {{ page.content | safe }}
+ {% if not page.extra.raw %}
+ <footer>
+ <hr>
+ <p class="muted">
+ Should you have any questions or comments, please reach out to me by sending <a href="mailto:contact@sefidel.net">an email</a> or <a href="https://matrix.to/#/@sef:exotic.sh">via Matrix</a>.
+ </p>
+ </footer>
+ {% endif %}
+ </article>
+{% endblock content %}