summaryrefslogtreecommitdiffstats
path: root/templates/index.html
blob: 037e4235f57a8a2e2f4af2c20b0168d05303a42a (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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
{# index.html #}
{% import "macros.html" as macros %}
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <meta name="robots" content="noindex" />
    <title>
      {% if term or taxonomy %}
        {% set this = term | default(value=taxonomy) %}
        {{ this.name }} -
      {% elif page or section %}
        {% set this = page | default(value=section) %}
        {% set len = this.components | length %}
        {%- if len > 0 %}
          {{ this.title }} -
        {% endif -%}
      {% endif %}
      {{ config.title }}
    </title>
    <meta name="description" content="{{ config.description }}" />
    <meta name="keywords" content="blog" />
    <link rel="icon" href="data:;base64,iVBORw0KGgo=">
    <link rel="alternate"
          type="application/atom+xml"
          title="Atom Feed"
          href="{{ get_url(path="atom.xml", trailing_slash=false) }}" />
    <link rel="stylesheet" type="text/css" href="/style.css" />
  </head>
  <body>
    <header>
      <nav>
        <span>{{ macros::nav_item(name=config.title, path="@/_index.md") }}</span>
        <ul>
          <li>{{ macros::nav_item(name="About", path="@/about.md") }}</li>
          <li>{{ macros::nav_item(name="Code", path="@/code/_index.md") }}</li>
          <li>{{ macros::nav_item(name="Posts", path="@/posts/_index.md") }}</li>
        </ul>
      </nav>
    </header>
    <main>
      {% block content %}
        <header>
          <hgroup>
            <h1>{{ section.title | safe }}</h1>
            <p>{{ section.description | default(value="") | markdown(inline=true) | safe }}</p>
          </hgroup>
        </header>
        {{ section.content | safe }}
      {% endblock content %}
    </main>
    <footer>
      This site was built with <a href="https://www.getzola.org/">Zola</a>.
      The <a href="{{ config.extra.repository }}">code</a> is licensed under
      <a href="https://opensource.org/licenses/{{ config.extra.license }}">{{ config.extra.license }}</a>.
    </footer>
  </body>
</html>