--- 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("fragments", ({ data }) => { return data.lang === astroI18n.langCode; }); // sort snippets by descending publication date const sortedPosts = localizedPost.sort( (a, b) => b.data.createdAt - a.data.createdAt ); const pageTitle = t("index.fragments.pageName"); ---

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

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