aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r/templates/articles.html
diff options
context:
space:
mode:
Diffstat (limited to 'pyaggr3g470r/templates/articles.html')
-rw-r--r--pyaggr3g470r/templates/articles.html22
1 files changed, 6 insertions, 16 deletions
diff --git a/pyaggr3g470r/templates/articles.html b/pyaggr3g470r/templates/articles.html
index 374eaea7..d98d1f80 100644
--- a/pyaggr3g470r/templates/articles.html
+++ b/pyaggr3g470r/templates/articles.html
@@ -3,24 +3,14 @@
<div class="container">
{% for number in range(0, feed.articles|sort(attribute='date')|length-2, 3) %}
<div class="row">
+ {% for n in range(number, number+3) %}
<div class="col-xs-6 col-sm-4 col-md-4">
- {% if feed.articles[number].readed %}<h3>{% else %}<h1>{% endif %}
- <a href="/article/{{ feed.articles[number].id }}">{{ feed.articles[number].title }}</a><h2>
- {% if feed.articles[number].readed %}</h3>{% else %}</h1>{% endif %}
- <h6>{{ feed.articles[number].date }}</h6>
- </div>
- <div class="col-xs-6 col-sm-4 col-md-4">
- {% if feed.articles[number+1].readed %}<h3>{% else %}<h1>{% endif %}
- <a href="/article/{{ feed.articles[number+1].id }}">{{ feed.articles[number+1].title }}</a><h2>
- {% if feed.articles[number+1].readed %}</h3>{% else %}</h1>{% endif %}
- <h6>{{ feed.articles[number+1].date }}</h6>
- </div>
- <div class="col-xs-6 col-sm-4 col-md-4">
- {% if feed.articles[number+2].readed %}<h3>{% else %}<h1>{% endif %}
- <a href="/article/{{ feed.articles[number+2].id }}">{{ feed.articles[number+2].title }}</a><h2>
- {% if feed.articles[number+2].readed %}</h3>{% else %}</h1>{% endif %}
- <h6>{{ feed.articles[number+2].date }}</h6>
+ {% if feed.articles[n].readed %}<h3>{% else %}<h1>{% endif %}
+ <a href="/article/{{ feed.articles[n].id }}">{{ feed.articles[n].title }}</a><h2>
+ {% if feed.articles[n].readed %}</h3>{% else %}</h1>{% endif %}
+ <h6>{{ feed.articles[n].date }}</h6>
</div>
+ {% endfor %}
</div>
{% endfor %}
</div><!-- /.container -->
bgstack15