Link to OG image in gallery

This commit is contained in:
Aria 2025-05-11 22:43:45 +10:00
parent 795ccb7f7a
commit 22c295c82e
Signed by: aria
GPG key ID: 19AB7AA462B8AB3B

View file

@ -43,7 +43,7 @@ const sorted = images.sort((a, b) => a.src.localeCompare(b.src));
> >
{ {
sorted.map((image) => ( sorted.map((image) => (
<Picture <a href={image.src}><Picture
src={image} src={image}
alt={`Image from ${album.data.title} album`} alt={`Image from ${album.data.title} album`}
formats={["avif", "webp", "jpeg"]} formats={["avif", "webp", "jpeg"]}
@ -51,7 +51,7 @@ const sorted = images.sort((a, b) => a.src.localeCompare(b.src));
class="rounded-sm mb-4 border border-transparent hover:border-gray-300 transition-all duration-300 ease-in-out hover:shadow-lg" class="rounded-sm mb-4 border border-transparent hover:border-gray-300 transition-all duration-300 ease-in-out hover:shadow-lg"
loading="lazy" loading="lazy"
decoding="async" decoding="async"
/> /></a>
)) ))
} }
</div> </div>