Mercurial > hg > Blog
comparison themes/tuxlite_tbs/templates/index.html @ 9:6e2bcaecf3ec
include the theme locally to avoid any dependency on the pelican-themes git repo. Those guys don't incorporate the fixes as quickly as I need plus, I already changed the theme to incorporate the juvia comments.
author | Dirk Olmes <dirk@xanthippe.ping.de> |
---|---|
date | Mon, 01 Jul 2013 04:09:23 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
8:587302b65fb6 | 9:6e2bcaecf3ec |
---|---|
1 {% extends "base.html" %} | |
2 {% block content_title %}{% endblock %} | |
3 {% block content %} | |
4 | |
5 {% if articles %} | |
6 {% for article in articles_page.object_list %} | |
7 | |
8 {# First item #} | |
9 {% if loop.first and not articles_page.has_previous() %} | |
10 | |
11 <div class='article'> | |
12 <div class="content-title"> | |
13 <a href="{{ SITEURL }}/{{ article.url }}"><h1>{{ article.title }}</h1></a> | |
14 {% include "metadata.html" %} | |
15 </div> | |
16 | |
17 <div>{{ article.content }}</div> | |
18 <hr /> | |
19 </div> | |
20 | |
21 {% if loop.length == 1 %} | |
22 {% include 'pagination.html' %} | |
23 {% endif %} | |
24 | |
25 {# other items #} | |
26 {% else %} | |
27 | |
28 <div class='article'> | |
29 <a href="{{ SITEURL }}/{{ article.url }}"><h2>{{ article.title }}</h2></a> | |
30 <div class= "well small"> {% include "metadata.html" %} </div> | |
31 <div class="summary">{{ article.summary }} <a class="btn btn-info xsmall" href="{{ SITEURL }}/{{ article.url }}">read more</a></div> | |
32 </div> | |
33 | |
34 {% if loop.last and (articles_page.has_previous() or not articles_page.has_previous() and loop.length > 1) %} | |
35 {% include 'pagination.html' %} | |
36 {% endif %} | |
37 | |
38 {% endif %} {# First item if #} | |
39 | |
40 {% endfor %} {# For article #} | |
41 {% endif %} {# If articles #} | |
42 | |
43 {% endblock content %} | |
44 |