--- import { l, t, astroI18n } from "astro-i18n"; astroI18n.init(Astro); // New astro content collections import { getCollection } from "astro:content"; import BaseLayout from "../../layouts/BaseLayout.astro"; import ListCards from "../../components/ListCards.astro"; const localizedPost = await getCollection("articles", ({ data }) => { return data.lang === astroI18n.langCode; }); // sort articles by descending publication date const sortedArticles = localizedPost.sort( (a, b) => b.data.createdAt - a.data.createdAt ); const pageTitle = t("index.articles.pageName"); ---

{t("index.articles.pageName")}

{t("index.articles.subtitle")}