change up image gen for gallery
This commit is contained in:
parent
22c295c82e
commit
9b70f945ff
1 changed files with 3 additions and 2 deletions
|
@ -46,8 +46,9 @@ const sorted = images.sort((a, b) => a.src.localeCompare(b.src));
|
||||||
<a href={image.src}><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"]}
|
||||||
quality={95}
|
fallbackFormat="jpeg"
|
||||||
|
quality={93}
|
||||||
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"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue