summaryrefslogtreecommitdiff
path: root/src/components/ScotsounCdGallery.astro
diff options
context:
space:
mode:
authorJoe Carstairs <65492573+Sycamost@users.noreply.github.com>2023-10-13 22:01:58 +0100
committerGitHub <noreply@github.com>2023-10-13 22:01:58 +0100
commit9ddedf444811bac0dd2d8ce6e21b64c8dee9de76 (patch)
tree37a73f2fa3be191ff3b493246dc9b1fc6b7c5f5c /src/components/ScotsounCdGallery.astro
parent6a0bd0ab3a0960cd1436190285ebe24bf8ef1f28 (diff)
parent429aef251345cf54af2feed3f8ecb608db7fd7e7 (diff)
Merge pull request #13 from Sycamost/dev
Dev
Diffstat (limited to 'src/components/ScotsounCdGallery.astro')
-rw-r--r--src/components/ScotsounCdGallery.astro3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/components/ScotsounCdGallery.astro b/src/components/ScotsounCdGallery.astro
index 1c810a0..d2c7e0b 100644
--- a/src/components/ScotsounCdGallery.astro
+++ b/src/components/ScotsounCdGallery.astro
@@ -1,4 +1,5 @@
---
+import { Image } from 'astro:assets';
import { getAllScotsoun } from '$data/scotsoun';
import { getLocaleFromPathOrThrow } from '$lib/getLocaleFromPath';
import type Scotsoun from '$types/Scotsoun';
@@ -19,7 +20,7 @@ function scotsounIdDescending(scotsoun1: Scotsoun, scotsoun2: Scotsoun) {
class="link link-gallery__container"
href={`/${locale}/furthsettins/scotsoun/${scotsounItem.scotsounId}`}
>
- <img src={scotsounItem.img.src} alt="" />
+ <Image src={scotsounItem.img.width192} alt="" />
<p class="link-gallery__title">{scotsounItem.title}</p>
</a>
</li>