fixed card i18n link

This commit is contained in:
Nico 2023-02-03 18:48:01 +01:00
parent e2b55e192b
commit d8f97ba35c
1 changed files with 5 additions and 2 deletions

View File

@ -1,13 +1,16 @@
--- ---
import ListTags from "./ListTags.astro"; import ListTags from "./ListTags.astro";
import { l, astroI18n } from "astro-i18n";
const { item, routeName } = Astro.props; const { item, routeName } = Astro.props;
--- ---
<div class="card"> <div class="card">
<div> <div>
<h3> <h3>
<a class="clean-link card__link" href={`/${routeName}/${item.slug}`} <a
>{item.data.title}</a class="clean-link card__link"
href={`${l(`/${routeName}`)}/${item.slug}`}>{item.data.title}</a
> >
</h3> </h3>
<h4>{item.data.subtitle}</h4> <h4>{item.data.subtitle}</h4>