featured item

This commit is contained in:
j 2021-11-22 13:59:43 +01:00
commit 2a24beb579
7 changed files with 89 additions and 10 deletions

View file

@ -38,9 +38,11 @@ body {
<h1>
<span class="font-bold">{{ film.data.title | safe }}</span>
</h1>
{% if film.data.date %}
<div class="date">
{{ film.data.date | safe }}
</div>
{% endif %}
<div class="country">
{{ film.data.country|default:''|join:', ' }}
</div>
@ -79,7 +81,8 @@ body {
<figure>
<img src="https://archive.njp.ma/{{ item.id }}/480p.jpg">
<figcaption>
{{ item.title | safe }} ({{item.date | safe }})
{{ item.title | safe }}
{% if item.date %}({{item.date | safe }}){% endif %}
</figcaption>
</figure>
</a>