equal
deleted
inserted
replaced
|
1 {% extends "blog/base_blog.html" %} |
|
2 |
|
3 |
|
4 {% block title %}{% endblock %} |
|
5 {% block body_class %}{{ block.super }} post_list{% endblock %} |
|
6 |
|
7 |
|
8 {% block content_title %} |
|
9 <h2>Post archive</h2> |
|
10 {% endblock %} |
|
11 |
|
12 |
|
13 {% block content %} |
|
14 <div class="post_list"> |
|
15 {% for post in object_list %} |
|
16 <div> |
|
17 <h3 class="title"><a href="{{ post.get_absolute_url }}">{{ post.title }}</a></h3> |
|
18 <p class="date">{{ post.publish|date:"Y F d" }}</p> |
|
19 <p class="tease">{{ post.tease }}</p> |
|
20 </div> |
|
21 {% endfor %} |
|
22 </div> |
|
23 |
|
24 {% if is_paginated %} |
|
25 <p class="pagination"> |
|
26 {% if has_next %} |
|
27 <a class="older" href="?page={{ next }}">Older</a> |
|
28 {% endif %} |
|
29 {% if has_next and has_previous %} | {% endif %} |
|
30 {% if has_previous %} |
|
31 <a class="newer" href="?page={{ previous }}">Newer</a> |
|
32 {% endif %} |
|
33 </p> |
|
34 {% endif %} |
|
35 {% endblock %} |