| 1 | {% from "macros/pagination.html" import render_pagination %} |
| 2 | {% extends "layout.html" %} |
| 3 | {% block content %} |
| 4 | <div class="row"> |
| 5 | <div class="col-xs-12 text-center"> |
| 6 | <h1>{{ this.title }}</h1> |
| 7 | </div> |
| 8 | </div> |
| 9 | <ul id="post-list"> |
| 10 | {% for post in this.pagination.items %} |
| 11 | <li> |
| 12 | <div class="post-list-item"> |
| 13 | <div class="post-header"> |
| 14 | <h4 class="post-link"><a href="{{ post|url }}">{{ post.title }}</a></h4> |
| 15 | <h4 class="post-date">{{ post.pub_date.strftime('%b %d, %Y') }}</h4> |
| 16 | </div> |
| 17 | <div class="post-summary"><p>{{ post.summary }}</p></div> |
| 18 | <div class="post-list-footer text-center"> |
| 19 | <a href="{{ post|url }}">Read More</a> |
| 20 | </div> |
| 21 | </div> |
| 22 | </li> |
| 23 | {% endfor %} |
| 24 | </ul> |
| 25 | {{ render_pagination(this.pagination) }} |
| 26 | {% endblock content %} |