perf(seo): add image dimensions and aspect-ratio handling

This commit is contained in:
Rico
2026-01-07 20:06:17 +01:00
parent cf08d2b3bb
commit e4d3a32558
4 changed files with 20 additions and 3 deletions

View File

@@ -20,7 +20,7 @@
<a href="/icon/{{ $icon->slug }}">
<img @if ($key < 8) loading="eager" @else loading="lazy" @endif
src="//wsrv.nl/?url={{ $icon->image }}&w=200&output=webp&q=50&il&default=ssl:wsrv.nl%2F%3Furl%3Dhttps://i.ibb.co/5s6YyvN/aaaa.png"
class="object-cover w-full h-full" alt="{{ $icon->title }} Icon" /></a>
class="object-cover w-full h-full" alt="{{ $icon->title }} Icon" width="96" height="96" /></a>
</div>
<div class="px-4 py-2">

View File

@@ -12,6 +12,8 @@
src="{{ $post->thumbnail }}"
alt="{{ $post->title }} Thumbnail"
class="object-cover w-full h-full"
width="1200"
height="630"
>
</a>