mirror of
https://github.com/kogakure/website-astro-stefanimhoff.de.git
synced 2026-02-03 20:15:27 +00:00
refactor: reduce the amount of image formats and sizes
Use the least amount of image formats and sizes: - WebP for images - Avif with JPEG fallback for pictures
This commit is contained in:
@@ -30,10 +30,11 @@ const { entries } = Astro.props;
|
||||
<img src={data.cover} alt={data.title} />
|
||||
) : (
|
||||
<Picture
|
||||
src={data.cover}
|
||||
alt={data.title}
|
||||
aspect={0.6}
|
||||
breakpoints={[300, 512, 768, 1024]}
|
||||
breakpoints={[300, 500, 1000]}
|
||||
format={['avif']}
|
||||
src={data.cover}
|
||||
/>
|
||||
)}
|
||||
</>
|
||||
|
||||
Reference in New Issue
Block a user