2021-09-18 22:56:29 +00:00
|
|
|
{% extends 'landing/layout.html' %}
|
2021-02-28 02:48:10 +00:00
|
|
|
{% load i18n %}
|
2022-01-07 02:13:56 +00:00
|
|
|
{% load cache %}
|
2022-01-18 20:28:59 +00:00
|
|
|
{% load landing_page_tags %}
|
2022-01-09 21:04:41 +00:00
|
|
|
|
2021-02-27 19:53:36 +00:00
|
|
|
{% block panel %}
|
2021-01-03 19:10:04 +00:00
|
|
|
|
2021-01-03 20:53:51 +00:00
|
|
|
<div class="block is-hidden-tablet">
|
2021-02-28 02:48:10 +00:00
|
|
|
<h2 class="title has-text-centered">{% trans "Recent Books" %}</h2>
|
2021-01-03 20:53:51 +00:00
|
|
|
</div>
|
|
|
|
|
2022-01-09 21:00:02 +00:00
|
|
|
{% get_current_language as LANGUAGE_CODE %}
|
|
|
|
{% cache 60 * 60 LANGUAGE_CODE %}
|
2022-01-09 21:04:41 +00:00
|
|
|
{% get_landing_books as books %}
|
2021-01-03 19:10:04 +00:00
|
|
|
<section class="tile is-ancestor">
|
2021-08-07 23:37:51 +00:00
|
|
|
<div class="tile is-vertical is-6">
|
2021-01-03 19:10:04 +00:00
|
|
|
<div class="tile is-parent">
|
2022-02-20 00:34:17 +00:00
|
|
|
<div class="tile is-child box has-background-secondary">
|
2021-08-08 00:12:09 +00:00
|
|
|
{% include 'landing/large-book.html' with book=books.0 %}
|
2021-01-03 19:10:04 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="tile">
|
|
|
|
<div class="tile is-parent is-6">
|
2022-02-20 00:34:17 +00:00
|
|
|
<div class="tile is-child box has-background-secondary">
|
2021-08-08 00:12:09 +00:00
|
|
|
{% include 'landing/small-book.html' with book=books.1 %}
|
2021-01-03 19:10:04 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="tile is-parent is-6">
|
2022-02-20 00:34:17 +00:00
|
|
|
<div class="tile is-child box has-background-secondary">
|
2021-08-08 00:12:09 +00:00
|
|
|
{% include 'landing/small-book.html' with book=books.2 %}
|
2021-01-03 19:10:04 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-08-07 23:37:51 +00:00
|
|
|
<div class="tile is-vertical is-6">
|
2021-01-03 19:10:04 +00:00
|
|
|
<div class="tile">
|
|
|
|
<div class="tile is-parent is-6">
|
2022-02-20 00:34:17 +00:00
|
|
|
<div class="tile is-child box has-background-secondary">
|
2021-08-08 00:12:09 +00:00
|
|
|
{% include 'landing/small-book.html' with book=books.3 %}
|
2021-01-03 19:10:04 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="tile is-parent is-6">
|
2022-02-20 00:34:17 +00:00
|
|
|
<div class="tile is-child box has-background-secondary">
|
2021-08-08 00:12:09 +00:00
|
|
|
{% include 'landing/small-book.html' with book=books.4 %}
|
2021-01-03 19:10:04 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="tile is-parent">
|
2022-02-20 00:34:17 +00:00
|
|
|
<div class="tile is-child box has-background-secondary">
|
2021-08-08 00:12:09 +00:00
|
|
|
{% include 'landing/large-book.html' with book=books.5 %}
|
2021-01-03 19:10:04 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</section>
|
2022-01-07 02:13:56 +00:00
|
|
|
{% endcache %}
|
2021-01-03 19:10:04 +00:00
|
|
|
{% endblock %}
|