<div class="columns is-multiline"> {% for book in books %} <div class="column is-narrow"> <div class="box"> <a href="/book/{{ book.id }}"> {% include 'snippets/book_cover.html' with book=book %} </a> {% include 'snippets/shelve_button.html' with book=book switch_mode=True %} </div> </div> {% endfor %} </div>