summaryrefslogtreecommitdiff
path: root/templates/index.html
blob: 64ac3cdff8d8196750334bf416632f28bba9a045 (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 content %}

{% set section = get_section(path="post/_index.md") %}
{% for year, pages in section.pages | group_by(attribute="year") %}
    <h3>{{ year}} </h3>

    {% for page in pages %}
    <p>
        <div class="date">
        {{ page.date }}
        </div>
        
        <div class="title">
            <a href="{{ page.permalink | safe }}">{{ page.title }}</a>
        </div>

        <div class="taxonomies_index">
        {% if page.taxonomies.categories %}
            {% for category in page.taxonomies.categories %}
            &emsp;<a href="{{ get_taxonomy_url(kind="categories", name=category) | safe }}">/{{ category }}</a>
            {% endfor %}
        {% endif %}

        {% if page.taxonomies.tags %}
            {% for tag in page.taxonomies.tags %}
            &emsp;<a href="{{ get_taxonomy_url(kind="tags", name=tag) | safe }}">#{{ tag }}</a>
            {% endfor %}
        {% endif %}
        </div>
    </p>
    {% endfor %}
{% endfor %}

{% endblock content %}