include direct links to latest posts on homepage
[chloro.git] / chloro / phyll / templates / phyll / home.html
1 {% extends "phyll/base.html" %}
2
3 {% block content-class %}home{% endblock %}
4
5 {% block body %}
6
7 {% with posts.0 as latest %}
8 <div class="latest">
9 <h2><a href="{{ latest.get_absolute_url }}">{{ latest.title }}</a></h2>
10 <div class="meta">{{ latest.creation_timestamp|date:"j E Y, H:i"|lower }}</div>
11 <div class="post">
12 {{ latest.text|safe }}
13 </div>
14 </div>
15 {% endwith %}
16
17 <div class="older post-list">
18 <ul>
19 {% for post in posts|slice:"1:" %}
20 <li><a href="{{ post.get_absolute_url }}">{{ post.title }}&nbsp;<span>{{ post.creation_timestamp|date:"Y/m/d" }}</span></a></li>
21 {% endfor %}
22 <li><a href="/archives/">...</a></li>
23 </ul>
24 </div>
25
26 <nav>
27 <a href="tag/radio/">Radio <span>(Panik &amp; ailleurs)</span></a>
28 <a href="tag/code/">Logiciel libre <span>(Debian, GNOME &amp; ce qui passe)</span></a>
29 <a class="divers" href="tag/divers/"><span>(Totalement)</span> divers</a>
30 <a class="vrac" href="archives/"><span>(tout)</span> En vrac</a>
31 </nav>
32
33 {% endblock %}