diff options
| author | Joe Carstairs <65492573+Sycamost@users.noreply.github.com> | 2023-08-13 20:33:03 +0100 |
|---|---|---|
| committer | Joe Carstairs <65492573+Sycamost@users.noreply.github.com> | 2023-08-13 20:33:03 +0100 |
| commit | f19fc78a151c761642cf7c9b654e0da9db3c4418 (patch) | |
| tree | 4fb1c40c51151572ebd2c283e5ae8a6e819b83f1 /src/components/ScotsounCdGallery.astro | |
| parent | f6d45f7b9374444ae1ab751a213d86827b64eb8f (diff) | |
More robust relative path handling
Diffstat (limited to 'src/components/ScotsounCdGallery.astro')
| -rw-r--r-- | src/components/ScotsounCdGallery.astro | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/components/ScotsounCdGallery.astro b/src/components/ScotsounCdGallery.astro index 12bafb0..6f6c794 100644 --- a/src/components/ScotsounCdGallery.astro +++ b/src/components/ScotsounCdGallery.astro @@ -1,5 +1,12 @@ --- import { getAllScotsoun } from '$data/scotsoun'; +import type Locale from '$types/Locale'; + +interface Props { + locale: Locale; +} + +const { locale } = Astro.props; const scotsoun = await getAllScotsoun(); --- @@ -8,7 +15,10 @@ const scotsoun = await getAllScotsoun(); { scotsoun.map((scotsounItem) => ( <li> - <a class="link link-gallery__container" href={`scotsoun/${scotsounItem.scotsounId}`}> + <a + class="link link-gallery__container" + href={`/${locale}/furthsettins/scotsoun/${scotsounItem.scotsounId}`} + > <div class="link-gallery__image"> <img src={`/images/scotsoun/sscd${scotsounItem.scotsounId}.jpg`} /> </div> |
