using the loop hint

pull/458/head
Tailchakra 7 years ago
parent 54b6aabaed
commit b77aa0770a

@ -25,7 +25,7 @@
<div class="row"> <div class="row">
{% if entries[0] %} {% if entries[0] %}
{% for entry in entries %} {% for entry in entries %}
{% if entry.series_index.first %} {% if loop.first %}
<div id="books" class="col-sm-3 col-lg-2 col-xs-6 book"> <div id="books" class="col-sm-3 col-lg-2 col-xs-6 book">
<div class="cover"> <div class="cover">
<a href="{{url_for('series', book_id=entry.series[0].id)}}"> <a href="{{url_for('series', book_id=entry.series[0].id)}}">

Loading…
Cancel
Save