]> 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 987a4461105721fdde1b5007545b8f8f948ab876..4688d5fd8eaf86490b3a655d990dd7827cf4f708 100644 (file)
@@ -3,10 +3,31 @@
 {% block content-class %}home{% endblock %}
 
 {% block body %}
-<div>
+
+{% 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>
+<div class="post">
+{{ 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>
 <a href="tag/code/">Logiciel libre <span>(Debian, GNOME &amp; ce qui passe)</span></a>
 <a class="divers" href="tag/divers/"><span>(Totalement)</span> divers</a>
 <a class="vrac" href="archives/"><span>(tout)</span> En vrac</a>
-</div>
+</nav>
+
 {% endblock %}