fixed card i18n link
This commit is contained in:
parent
e2b55e192b
commit
d8f97ba35c
|
@ -1,13 +1,16 @@
|
|||
---
|
||||
import ListTags from "./ListTags.astro";
|
||||
import { l, astroI18n } from "astro-i18n";
|
||||
|
||||
const { item, routeName } = Astro.props;
|
||||
---
|
||||
|
||||
<div class="card">
|
||||
<div>
|
||||
<h3>
|
||||
<a class="clean-link card__link" href={`/${routeName}/${item.slug}`}
|
||||
>{item.data.title}</a
|
||||
<a
|
||||
class="clean-link card__link"
|
||||
href={`${l(`/${routeName}`)}/${item.slug}`}>{item.data.title}</a
|
||||
>
|
||||
</h3>
|
||||
<h4>{item.data.subtitle}</h4>
|
||||
|
|
Loading…
Reference in New Issue