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

{% block title %}
{{ config.title }}
{% endblock %}

{% block content %}

<div class="pagination">
    <a href="{{ get_url(path="@/blog/_index.md") }}">Go to blog</a>
</div>

{% set blog_section = get_section(path="blog/_index.md") %}
{% for page in blog_section.pages | slice(end=5) %}
<div class="article-header">
    <h1><a href="{{ page.permalink | safe }}">{{ page.title }}</a></h1>
    <div class="info">
        <p class="date">{{ page.date | date(format="%B %-d, %Y") }}</p>
        <p class="tags">
        {% for tag in page.taxonomies["tags"] %}
            <a href="{{ get_taxonomy_url(kind="tags", name=tag) }}">#{{ tag }}</a>
        {%- endfor %}
        </p>
    </div>
</div>
<div class="typography">
    {{ page.summary | safe }}
    <p><a href="">Read more…</a></p>
</div>
{% if not loop.last %}<hr />{% endif %}
{% endfor %}

<div class="pagination">
    <a href="">Go to blog</a>
</div>

{% endblock %}