feat: 11ty image plugin + optimize images

This commit is contained in:
Cory Dransfeldt 2023-05-27 19:01:43 -07:00
parent b59886a56e
commit c87e893046
No known key found for this signature in database
5 changed files with 39 additions and 54 deletions

View file

@ -17,9 +17,8 @@ meta:
image:
src: https://coryd.dev/assets/img/avatar.webp
---
<div class="flex items-center justify-center w-full">
<img class="max-w-xs w-full h-auto mt-0 mb-1" src="/assets/img/avatar.webp" alt="{{ site.name }}" loading="lazy" />
{% image './src/assets/img/avatar.webp', site.name, 'max-w-xs w-full h-auto mt-0 mb-1', '320px', 'eager' %}
</div>
<h1 class="text-xxl font-black -leading-tight tracking-normal dark:text-gray-200 md:text-3xl text-center">Hi, I'm Cory</h1>