theme tweaks
[Ultimately_Untrue_Thought.git] / theme / templates / index.html
1 {% extends "base.html" %}
2 {% block content_title %}{% endblock %}
3
4 {% block content %}
5
6 {% for article in articles %}
7
8     {% if loop.index == 1 %}
9
10       <article>
11         <h1><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a></h1>
12         {{ article.content }}
13       </article>
14
15       <hr />
16
17       {% if loop.length  > 1 %}
18         <div>
19           <h3>Last posts</h3>
20           <ol class="archive">
21       {% endif %}
22     
23     {% elif loop.index < 7 %}
24       <li>
25         {% include 'article_link.inc.html' %}
26       </li>
27     {% endif %}
28
29 {% endfor %}
30
31 {% if articles|length > 1 %}
32           </ol>
33         </div>
34 {% endif %}
35
36 {% endblock content %}