diff options
Diffstat (limited to 'src/components')
| -rw-r--r-- | src/components/LallansIssuesGallery.astro | 2 | ||||
| -rw-r--r-- | src/components/Link.astro | 9 | ||||
| -rw-r--r-- | src/components/Navbar/Breadcrumbs.astro | 4 | ||||
| -rw-r--r-- | src/components/ScotsounCdGallery.astro | 2 | ||||
| -rw-r--r-- | src/components/SwitchLanguageLink.astro | 2 |
5 files changed, 4 insertions, 15 deletions
diff --git a/src/components/LallansIssuesGallery.astro b/src/components/LallansIssuesGallery.astro index fd0ad0a..3e79de9 100644 --- a/src/components/LallansIssuesGallery.astro +++ b/src/components/LallansIssuesGallery.astro @@ -17,7 +17,7 @@ function issueNumberDescending(issue1: LallansIssue, issue2: LallansIssue) { issues.map(async (issue) => ( <li> <a - class="link link-gallery__container" + class="link-gallery__container" href={`/${locale}/furthsettins/lallans/${issue.issueNumber}`} > <Image src={issue.img.width192} alt="" /> diff --git a/src/components/Link.astro b/src/components/Link.astro deleted file mode 100644 index 365441e..0000000 --- a/src/components/Link.astro +++ /dev/null @@ -1,9 +0,0 @@ ---- -interface Props { - href: string; -} - -const { href } = Astro.props; ---- - -<a class="link" href={href}><slot /></a> diff --git a/src/components/Navbar/Breadcrumbs.astro b/src/components/Navbar/Breadcrumbs.astro index 1e82fd9..f949873 100644 --- a/src/components/Navbar/Breadcrumbs.astro +++ b/src/components/Navbar/Breadcrumbs.astro @@ -23,9 +23,7 @@ const t = translate(locale); parentRoutes.map((route) => { return ( <li> - <a class="link" href={`/${locale}${route}`}> - {t(tBreadcrumbs, { key: route })} - </a> + <a href={`/${locale}${route}`}>{t(tBreadcrumbs, { key: route })}</a> </li> ); }) diff --git a/src/components/ScotsounCdGallery.astro b/src/components/ScotsounCdGallery.astro index d2c7e0b..3908f4d 100644 --- a/src/components/ScotsounCdGallery.astro +++ b/src/components/ScotsounCdGallery.astro @@ -17,7 +17,7 @@ function scotsounIdDescending(scotsoun1: Scotsoun, scotsoun2: Scotsoun) { scotsoun.map((scotsounItem) => ( <li> <a - class="link link-gallery__container" + class="link-gallery__container" href={`/${locale}/furthsettins/scotsoun/${scotsounItem.scotsounId}`} > <Image src={scotsounItem.img.width192} alt="" /> diff --git a/src/components/SwitchLanguageLink.astro b/src/components/SwitchLanguageLink.astro index fce633f..abbf0cb 100644 --- a/src/components/SwitchLanguageLink.astro +++ b/src/components/SwitchLanguageLink.astro @@ -20,7 +20,7 @@ const otherLocalePath = currentPath const t = translate(otherLocale); --- -<a class="link nav__switch-language-link" href={otherLocalePath}> +<a class="nav__switch-language-link" href={otherLocalePath}> { t(tPage, { key: 'language-link-text', |
