]> git.0d.be Git - chloro.git/blob - chloro/phyll/templates/phyll/home.html
do not include non-feed 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     <article class="latest">
9       <h1><a href="{{ latest.get_absolute_url }}">{{ latest.title }}</a></h1>
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     </article>
15   {% endwith %}
16
17   <section class="older post-list">
18     Avant ça :
19     <ul>
20       {% for post in posts|slice:"1:" %}
21         <li><a href="{{ post.get_absolute_url }}">{{ post.title }}&nbsp;<span>{{ post.creation_timestamp|date:"Y/m/d" }}</span></a></li>
22       {% endfor %}
23       <li><a href="/archives/">...</a></li>
24     </ul>
25   </section>
26
27 {% endblock %}