]> git.0d.be Git - chloro.git/blobdiff - chloro/phyll/templates/phyll/home.html
include direct links to latest posts on homepage
[chloro.git] / chloro / phyll / templates / phyll / home.html
index 42eb41048176ea05f102c7b24bc62ff0a5bb2263..4688d5fd8eaf86490b3a655d990dd7827cf4f708 100644 (file)
@@ -4,6 +4,7 @@
 
 {% block body %}
 
+{% with posts.0 as latest %}
 <div class="latest">
 <h2><a href="{{ latest.get_absolute_url }}">{{ latest.title }}</a></h2>
 <div class="meta">{{ latest.creation_timestamp|date:"j E Y, H:i"|lower }}</div>
 {{ latest.text|safe }}
 </div>
 </div>
+{% endwith %}
+
+<div class="older post-list">
+<ul>
+{% for post in posts|slice:"1:" %}
+<li><a href="{{ post.get_absolute_url }}">{{ post.title }}&nbsp;<span>{{ post.creation_timestamp|date:"Y/m/d" }}</span></a></li>
+{% endfor %}
+<li><a href="/archives/">...</a></li>
+</ul>
+</div>
 
 <nav>
 <a href="tag/radio/">Radio <span>(Panik &amp; ailleurs)</span></a>