aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r/templates/home.html
diff options
context:
space:
mode:
Diffstat (limited to 'pyaggr3g470r/templates/home.html')
-rw-r--r--pyaggr3g470r/templates/home.html22
1 files changed, 6 insertions, 16 deletions
diff --git a/pyaggr3g470r/templates/home.html b/pyaggr3g470r/templates/home.html
index 7aede342..aa390d2d 100644
--- a/pyaggr3g470r/templates/home.html
+++ b/pyaggr3g470r/templates/home.html
@@ -10,24 +10,14 @@
</div>
{% 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 %}
{% endfor %}
bgstack15