aboutsummaryrefslogtreecommitdiffstats
path: root/templates/index.html
blob: d79743b27afe2b24f8757a251a5ee099ef8f7a74 (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
{% extends "template.html" %}
{% block content %}
    <aside>
        <section id="recent thoughts">
            <h4>recent thoughts:</h4>
            <ul>
                {% for id_, title in featured_thoughts %}
                    <li><a href={{"/thought?id=%i" % id_}}>title</a></li>
                {% endfor %}
            </ul>
        </section>
    </aside>
    {{markdown|safe}}
    {% if tweets != None %}
        <section id="recent_tweets">
            <h1>recent tweets</h1>
            <ul>
                {% for url, text in tweets %}
                    {% if text == None %}
                        <li><a href={{url}}>[image only]</a></li>
                    {% else %}
                        <li><a href={{url}}>{{text}}</a></li>
                    {% endif %}
                {% endfor %}
            </ul>
        </section>
    {% endif %}
{% endblock %}