Skip to content

Commit

Permalink
add gallery links
Browse files Browse the repository at this point in the history
  • Loading branch information
Aurel committed Mar 17, 2024
1 parent 1d9247f commit 9700024
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bakerydemo/templates/tags/gallery.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@

{% for img in images %}
<div class="picture-card">
<figure class="picture-card__image">
<a href="{{ img.file.url }}">
<figure class="picture-card__image">
{% picture img format-{avif,webp,jpeg} fill-{300x200-c75,645x480-c75} sizes="(max-width: 768px)150px,30vw" loading="lazy" %}
<div class="picture-card__contents">
<p class="picture-card__title">{{ img.title }}</p>
</div>
</figure>
</a>
</div>
{% endfor %}

0 comments on commit 9700024

Please sign in to comment.