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/LallansIssuesGallery.astro | |
| parent | f6d45f7b9374444ae1ab751a213d86827b64eb8f (diff) | |
More robust relative path handling
Diffstat (limited to 'src/components/LallansIssuesGallery.astro')
| -rw-r--r-- | src/components/LallansIssuesGallery.astro | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/components/LallansIssuesGallery.astro b/src/components/LallansIssuesGallery.astro index bee50c8..c784156 100644 --- a/src/components/LallansIssuesGallery.astro +++ b/src/components/LallansIssuesGallery.astro @@ -1,5 +1,12 @@ --- import { getAllLallansIssues } from '$data/lallans'; +import type Locale from '$types/Locale'; + +interface Props { + locale: Locale; +} + +const { locale } = Astro.props; const issues = await getAllLallansIssues(); --- @@ -8,7 +15,10 @@ const issues = await getAllLallansIssues(); { issues.map((issue) => ( <li> - <a class="link link-gallery__container" href={`lallans/${issue.issueNumber}`}> + <a + class="link link-gallery__container" + href={`/${locale}/furthsettins/lallans/${issue.issueNumber}`} + > <div class="link-gallery__image"> <img src={`/images/lallans/issue${issue.issueNumber}.jpg`} /> </div> |
