blog

See previous commit

Author
Maarten 'Vngngdn' Vangeneugden
Date
July 11, 2017, 1:57 a.m.
Hash
b2cfc78e1e2d66fa54242752e4b378fd90911bee
Parent
4fb4d05d233b7f897c59d92fcfb2842683572f7f
Modified file
templates/blog/index.html

templates/blog/index.html

1 addition and 1 deletion.

View changes Hide changes
1
1
{% load i18n %}
2
2
3
3
{% block title %}{% trans "Maarten's blog" %}{% endblock title %}
4
4
5
5
{% block description %}{% blocktrans %}The always coherently put together, yet
6
6
fuzzy blog of whatever sprouts in my mind.{% endblocktrans %}
7
7
{% endblock description %}
8
8
9
9
{% block main %}
10
10
{% with color="brown" accent_color="yellow" %}
11
11
<div class="section {{ color }} z-depth-3">
12
12
    <div class="container">
13
13
        <div class="white-text">
14
14
            <h3>{% trans "Blog" %}</h3>
15
15
            <p>
16
16
                {% blocktrans %}Welcome to my blog. Here, I write
17
17
                about things that interest me. Politics, coding,
18
18
                studying, life, or anything else I fancy rambling
19
19
                about. If you're in luck, I may've written it in a
20
20
                language that you understand better than English.
21
21
                {% endblocktrans %}
22
22
            </p>
23
23
        </div>
24
24
    </div>
25
25
</div>
26
26
27
27
<div class="container">
28
28
    {% for title, date, description, link in post_links %}
29
29
        <h2 class="{{ color}}-text">{{ title }}</h2>
30
30
        {# FIXME: Date is in all languages of the same format. Fix for each language #}
31
31
        <span class="grey-text">{{ date|date: "l j F Y" }}</span>
32
-
        <p class="hide-on-small-only">{{ description }}</p>
+
32
        <p class="hide-on-small-only">{{ description }}</p>
33
33
        <a class="btn {{accent_color}} accent-3" href="{{link}}">
34
34
            {% trans "Read on"%}
35
35
        </a>
36
36
        <hr />
37
37
    {% endfor %}
38
38
</div>
39
39
{% endwith %}
40
40
{% endblock main %}
41
41