summaryrefslogtreecommitdiffstats
path: root/templates/index.html
blob: 222ea74d776f5de89fba038e131478d33fa26e46 (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
51
52
53
54
55
56
57
58
<!DOCTYPE html>

<html class="no-js" lang="{{ config.default_language | default(value="en") }}">

{% block head %}
<head>
    <meta charset="utf-8">
    <meta http-equiv="x-ua-compatible" content="ie=edge">
    <title>{% block title %}{{ config.extra.title }}{% endblock title %}</title>
    <meta name="description" content="{% block description %}{{ config.description }}{% endblock description %}">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

    <link rel="stylesheet" href="/css/normalize.css">
    <link rel="stylesheet" href="/css/main.css">

    <link rel="alternate" type="application/rss+xml" title="RSS" href="{{ get_url(path="atom.xml", trailing_slash=false) }}">
</head>
{% endblock head %}

<body>

{% block header %}
<header>
    <a href="/"><img id="logo" src="{{ config.extra.logo }}" /></a>
    <h1>{{ config.extra.title }}</h1>
</header>
{% endblock header %}

<main>
{% block content %}
<p>{{ config.extra.intro }}</p>
<div class="archive">
    <h2>Archive</h2>

{%- for year, posts in section.pages | group_by(attribute="year") %}

    <h3>{{ year }}</h3>
    {%- for post in posts %}

        <article class="list-item">
            <a href="{{ post.permalink | safe }}" class="list-item-link">{{ post.title }}</a>
            <span class="list-item-date">{{ post.date | date(format="%B %e, %Y") }}</span>
        </article>
    {%- endfor %}
{% endfor %}
</div>

{% endblock content %}
</main>

{% block footer %}
<footer>
    {{ config.extra.copyright | safe }}
</footer>
{% endblock footer %}

</body>
</html>