new HP design + content, new references, fixed styles, fixed i18n
This commit is contained in:
parent
407cdf9099
commit
3ff4ad3b17
64 changed files with 445 additions and 133 deletions
|
@ -3,13 +3,10 @@
|
|||
import { l, t, astroI18n } from "astro-i18n";
|
||||
astroI18n.init(Astro);
|
||||
|
||||
import { getEntry } from "astro:content";
|
||||
|
||||
// import stuff
|
||||
import BaseLayout from "../layouts/BaseLayout.astro";
|
||||
import QuickAccessCard from "../components/QuickAccessCard.astro";
|
||||
import ListCards from "../components/ListCards.astro";
|
||||
import CardEditorial from "../components/CardEditorial.astro";
|
||||
|
||||
const pageTitle = t("accueil");
|
||||
|
||||
|
@ -73,7 +70,7 @@ const localizedReferences = await getCollection("references", ({ data }) => {
|
|||
<div class="section__reference">
|
||||
<ListCards
|
||||
list={localizedReferences.filter((ref) => {
|
||||
return ref.slug === section.frontmatter.reference;
|
||||
return ref.data.permalink === section.frontmatter.reference;
|
||||
})}
|
||||
routeName={t("references.slug")}
|
||||
/>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue