Simplifies query for landing page books

This commit is contained in:
Mouse Reeve
2021-08-07 17:12:09 -07:00
parent b116df723f
commit c28d077cb4
2 changed files with 18 additions and 22 deletions

View File

@ -10,18 +10,18 @@
<div class="tile is-vertical is-6">
<div class="tile is-parent">
<div class="tile is-child box has-background-white-ter">
{% include 'landing/large-book.html' with book=books.has_description.0 %}
{% include 'landing/large-book.html' with book=books.0 %}
</div>
</div>
<div class="tile">
<div class="tile is-parent is-6">
<div class="tile is-child box has-background-white-ter">
{% include 'landing/small-book.html' with book=books.no_description.0 %}
{% include 'landing/small-book.html' with book=books.1 %}
</div>
</div>
<div class="tile is-parent is-6">
<div class="tile is-child box has-background-white-ter">
{% include 'landing/small-book.html' with book=books.no_description.1 %}
{% include 'landing/small-book.html' with book=books.2 %}
</div>
</div>
</div>
@ -30,18 +30,18 @@
<div class="tile">
<div class="tile is-parent is-6">
<div class="tile is-child box has-background-white-ter">
{% include 'landing/small-book.html' with book=books.no_description.2 %}
{% include 'landing/small-book.html' with book=books.3 %}
</div>
</div>
<div class="tile is-parent is-6">
<div class="tile is-child box has-background-white-ter">
{% include 'landing/small-book.html' with book=books.no_description.3 %}
{% include 'landing/small-book.html' with book=books.4 %}
</div>
</div>
</div>
<div class="tile is-parent">
<div class="tile is-child box has-background-white-ter">
{% include 'landing/large-book.html' with book=books.has_description.1 %}
{% include 'landing/large-book.html' with book=books.5 %}
</div>
</div>
</div>