summaryrefslogblamecommitdiffstats
path: root/templates/index.html
blob: b7dd98ba4e97abd0e86dcb3762ca69a4105b54e0 (plain) (tree)






















                                                                                                                             
                                                                          















                                                                    
                                                                                        
















                                                                                          
<!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 | safe }}" /></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.path | 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>