Link to OG image in gallery
This commit is contained in:
parent
795ccb7f7a
commit
22c295c82e
1 changed files with 2 additions and 2 deletions
|
@ -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>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue