about summary refs log tree commit diff stats
path: root/themes/xmin/templates/index.html
blob: 23ec4cd01e1ecb8871b3683f6ee0c73f693a085b (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
{% extends "base.html" %}

{% block main %}
<main class="h-card">
  <h1 class="p-name">{{ config.title }}</h1>
  {{ section.content | safe }}
  <section>
    <h2>Latest Posts</h2>
    <ul class="h-feed">
      {%- for page in section.pages | slice(end=3) %}
        <li class="h-entry">
          <time class="dt-published" datetime="{{ page.date | date(format="%+") }}">{{ page.date | date(format="%F") }}</time>
          <a class="u-url p-name" href="{{ page.path | safe }}">{{ page.title }}</a>
        </li>
      {%- endfor %}
    </ul>
  </section>
  <section>
    <h2>Elsewhere on the Internet</h2>
    <ul>
      {%- for item in config.extra.menu.contact %}
        <li>
          {%- if item.url is starting_with("mailto:") %}
            <a href="{{ item.url | safe }}" class="u-email email" rel="me">{{ item.name }}</a>
          {%- else %}
            <a href="{{ item.url | safe }}" class="u-url url" rel="me">{{ item.name }}</a>
          {%- endif %}
        </li>
      {%- endfor %}
    </ul>
  </section>
  <footer>
    GPG Key: <a href="{{ config.extra.gpg_url | safe }}" rel="u-key pgpkey">{{ config.extra.gpg_fingerprint }}</a>
  </footer>
</main>
{% endblock %}