summary refs log tree commit diff
path: root/layouts/base.jinja
blob: 7f10e166a395c9cbcc5828cc98734f8d7e89f22920d9d78bff78464e54fca0da (plain) (blame)
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
45
46
47
48
49
50
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta name="color-scheme" content="dark light" />
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel=stylesheet href="/css/colors.css">
    <link rel=stylesheet href="/css/syntax.css">
    <link rel=stylesheet href="/css/main.css">
  </head>
<body>
    <a id="skip-main" class="hidden" href="#main">Skip to content</a>
    <header>
      <nav>
        <ul>
          {% for menu in site.menus.header %}
            <li><a href="{{ menu.url }}">{{ menu.text }}</a></li>
          {% endfor %}
        </ul>
      </nav>
    </header>
    <div class="container">
      <main id="main">
      {% block content %}{% endblock content %}
      </main>
      <aside class="webring">
        {% include "parts/webrings.jinja" %}
      </aside>
    </div>
    <footer>
      <div class="copyright">
        <p>Copyright © 2021 – {{ now.year }} Ngô Ngọc Đức Huy</p>
        <a rel="license" href="http://creativecommons.org/licenses/by-sa/4.0/"><img alt="Creative Commons License" style="border-width:0" src="https://licensebuttons.net/l/by-sa/4.0/88x31.png"></a>
        <p>
          The content for this site is <a href="https://creativecommons.org/licenses/by-sa/4.0/">CC-BY-SA 4.0</a>.<br>
          The <a href="https://git.sr.ht/~huyngo/blog">template and stylesheet that generates it</a> is <a href="https://opensource.org/licenses/MIT">MIT</a>.<br>
          The <a href="https://git.sr.ht/~huyngo/pensiv">site generator</a> is <a href="https://www.gnu.org/licenses/gpl-3.0.en.html#license-text">GPL-3.0 only</a>.
        </p>
        </div>
      <nav id="contact">
        <dl>
          {% for menu in site.menus.footer %}
            <dt>{{ menu.name }}</dt>
            <dd><a href="{{ menu.url }}">{{ menu.text }}</a></dd>
          {% endfor %}
        </dl>
      </nav>
    </footer>
</body>
</html>