feat: 11ty image plugin + optimize images
This commit is contained in:
parent
b59886a56e
commit
c87e893046
5 changed files with 39 additions and 54 deletions
|
@ -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>
|
||||
|
||||
|
|
Reference in a new issue