chore: refactor media grid to display books at proper sizes

This commit is contained in:
Cory Dransfeldt 2024-03-07 11:09:32 -08:00
parent f0e5f2570f
commit cb70204bb1
No known key found for this signature in database
3 changed files with 48 additions and 44 deletions

View file

@ -15,8 +15,7 @@
{% for item in media limit: count %}
{% assign alt = item.alt | strip | escape %}
<a href="{{ item.url | stripUtm }}" title="{{ alt }}">
<div class="item__wrapper">
{% if item.subtext %}<div class="item__cover"></div>{% endif %}
<div class="item__wrapper{% if item.subtext %} shadow{% endif %}">
<div class="item__meta-text">
{% if item.title %}
<div class="header">{{ item.title }}</div>