summaryrefslogtreecommitdiff
path: root/templates/index.html
blob: 11ff2d26add423b9ae7ff12150c24baea7120821 (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
{% extends "base.html" %}

{% block content %}
<h1 id="page-title">
    {{ section.title }}
</h1>

<p>{{ section.description }}</p>

<nav>
    <table>
        <caption>
            Posts
        </caption>
        <thead>
            <tr>
                <td>Title</td>
                <td>Date</td>
            </tr>
        </thead>
        <tbody>
            {% for page in paginator.pages %}
            <tr>
                <td><a href="{{ page.permalink | safe }}">{{page.title}}</a></td>
                <td>{{ page.date }}</td>
            </tr>
            {% endfor %}
        </tbody>
    </table>
    <nav class="pagination">
        {% if paginator.previous %}
        <a class="previous" href="{{ paginator.previous }}">‹ Previous</a>
        {% endif %}
        {% if paginator.next %}
        <a class="next" href="{{ paginator.next }}">Next ›</a>
        {% endif %}
    </nav>
</nav>

{% endblock %}