diff options
| author | Joe Carstairs <65492573+Sycamost@users.noreply.github.com> | 2023-10-13 21:43:18 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-13 21:43:18 +0100 |
| commit | 429aef251345cf54af2feed3f8ecb608db7fd7e7 (patch) | |
| tree | 37a73f2fa3be191ff3b493246dc9b1fc6b7c5f5c /src/components/LallansIssuesGallery.astro | |
| parent | 300f8c673829f6af26f1b5e73e4e9d10e8dd6692 (diff) | |
| parent | a37d5bd725cfe61c56d84f06a58d88872f6b7690 (diff) | |
Merge pull request #12 from Sycamost/optimise-images-again
Optimise images again
Diffstat (limited to 'src/components/LallansIssuesGallery.astro')
| -rw-r--r-- | src/components/LallansIssuesGallery.astro | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/components/LallansIssuesGallery.astro b/src/components/LallansIssuesGallery.astro index 1d6a3e7..fd0ad0a 100644 --- a/src/components/LallansIssuesGallery.astro +++ b/src/components/LallansIssuesGallery.astro @@ -1,4 +1,5 @@ --- +import { Image } from 'astro:assets'; import { getAllLallansIssues } from '$data/lallans'; import { getLocaleFromPathOrThrow } from '$lib/getLocaleFromPath'; import type LallansIssue from '$types/LallansIssue'; @@ -13,13 +14,13 @@ function issueNumberDescending(issue1: LallansIssue, issue2: LallansIssue) { <ul class="link-gallery"> { - issues.map((issue) => ( + issues.map(async (issue) => ( <li> <a class="link link-gallery__container" href={`/${locale}/furthsettins/lallans/${issue.issueNumber}`} > - <img src={issue.img.src} alt="" /> + <Image src={issue.img.width192} alt="" /> <p class="link-gallery__title"> Lallans {issue.issueNumber} | {issue.issueName} </p> |
