aboutsummaryrefslogtreecommitdiff
path: root/templates/page.html
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2023-03-26 16:55:25 +0900
committersefidel <contact@sefidel.net>2023-03-26 16:55:25 +0900
commit77ffc8dfeabd45cb3fac500902fcbcb7176edcc7 (patch)
tree4c3a538e0792d60ca637a3921341820087311233 /templates/page.html
downloadsefidel-web-77ffc8dfeabd45cb3fac500902fcbcb7176edcc7.zip
project: Initial commit
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 %}