aboutsummaryrefslogtreecommitdiffstats
path: root/Peli-Kiera/templates/article.html
blob: eaf9762a3c514373bba1d47dfa0c9d4f3d5d2b1e (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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
{% extends "base.html" %}
{% block html_lang %}{{ article.lang }}{% endblock %}
{% block title %}{{ SITENAME }} - {{ article.title }}{% endblock %}
{% block head %}
{{ super() }}
{% if article.description %}
<meta name="description" content="{{ article.description }}" />
{% endif %}
{% for tag in article.tags %}
<meta name="tags" content="{{ tag }}" />
{% endfor %}
{% endblock %}
{% block content %}
<main>
    <article>
        <h1>{{ article.title }}</h1>
        {% import 'translations.html' as translations with context %}
        {{ translations.translations_for(article) }}
        <aside>
            <ul>
                <li>
                    <time datetime="{{ article.date }}">{{ article.date|strftime('%b %d, %Y') }}</time>
                </li>
                {% if article.modified %}
                <li>
                    <time datetime="{{ article.modified }}">Modified
                        on {{ article.modified|strftime('%b %d, %Y') }}</time>
                </li>
                {% endif %}
                {% if article.readtime %}
                <li>{{ article.readtime.minutes }} min read</li>
                {% endif %}
                {% if article.category %}
                <li>
                    Categories:
                    <a href="{{ SITEURL }}/{{ article.category.url }}"><em>{{ article.category }}</em></a>
                    {% endif %}
                </li>
                {% if article.tags %}
                <li>
                    Tags:
                    {% for tag in article.tags %}
                    <a href="{{ SITEURL }}/{{ tag.url }}"><em>#{{ tag }}</em></a>
                    {% endfor %}
                    {% endif %}
                </li>
            </ul>
        </aside>
        {{ article.content }}
    </article>
    <section class="post-nav">
        <div id="left-page">
            <div id="left-link">
                {% if article.next_article %}
                <div id="left-arrow"><i class="fa fa-chevron-circle-left"></i></div>
                <a href="{{ SITEURL }}/{{ article.next_article.url }}"> {{ article.next_article.title }}</a>
                {% endif %}
            </div>
        </div>
        <div id="right-page">
            <div id="right-link">
                {% if article.prev_article %}
                <a href="{{ SITEURL }}/{{ article.prev_article.url }}">{{ article.prev_article.title }} </a>
                <div id="right-arrow"><i class="fa fa-chevron-circle-right"></i></div>
                {% endif %}
            </div>
        </div>
    </section>
    <div>
        {% include 'disqus_script.html' %}
    </div>
</main>
{% endblock %}