feat: update image handling

- removes old image shortcode
- update to latest 11ty image transform plugin
This commit is contained in:
Devin Haska 2024-10-10 22:25:08 -07:00
parent 362fa22b58
commit 4be14ab487
45 changed files with 838 additions and 978 deletions

View file

@ -25,7 +25,11 @@ description: What's going on now and all the latest with myself.
{{ album.artist }} - {{ album.album }}
{% endset %}
<p class="[ visually-hidden ]">{{ textContent }}</p>
{% image album.imageUrl, "", "", "", textContent %}
{% if album.imageUrl %}
<img src="{{ album.imageUrl }}" alt="" />
{% else %}
<div>{{ textContent }}</div>
{% endif %}
</a>
</li>
{% endfor %}
@ -43,7 +47,11 @@ description: What's going on now and all the latest with myself.
{{ movie.title }}
{% endset %}
<p class="[ visually-hidden ]">{{ movie.title }}</p>
{% image movie.imgSrc, "", "", "" , textContent %}
{% if movie.imgSrc %}
<img src="{{ movie.imgSrc }}" alt="" />
{% else %}
<div>{{ textContent }}</div>
{% endif %}
</a>
</li>
{% endfor %}