about summary refs log tree commit diff
path: root/templates/page.html
blob: cef35d9cdd86f14dbf74c6f538bc32c2b861c4b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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 %}