fixed card i18n link
This commit is contained in:
parent
e2b55e192b
commit
d8f97ba35c
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue