feat: eleventy transform for images

This commit is contained in:
Cory Dransfeldt 2024-02-13 15:28:28 -08:00
parent 243b1103e4
commit 7e1597b36a
No known key found for this signature in database
36 changed files with 179 additions and 1262 deletions

View file

@ -10,8 +10,7 @@ image: /assets/img/ogi/about.jpg
<style>{{ css }}</style>
<div class="avatar__wrapper flex--centered">
{% capture about_alt %}{{ meta.siteName }} - image by David Neal / @reverentgeek{% endcapture %}
{% capture fallbackIcon %}{% tablericon "photo" about_alt %}{% endcapture %}
{% image './src/assets/img/avatar.webp', about_alt, '', 'eager', 'banner', fallbackIcon %}
<img src="/assets/img/avatar.webp" alt="{{ about_alt }}" />
</div>
<h2 class="page__header text-center">Hi, I'm Cory</h2>