Formatting and config

This commit is contained in:
aronmal 2023-08-22 11:58:27 +02:00
parent ac8a31795e
commit 52fd781b60
Signed by: aronmal
GPG key ID: 816B7707426FC612
23 changed files with 521 additions and 515 deletions

View file

@ -0,0 +1,16 @@
---
import Layout from "../../layouts/index.astro"
import { getCollection, getEntry } from "astro:content"
export function getStaticPaths() {
return [{ params: { lang: "de" } }, { params: { lang: "en" } }]
}
const sections = await getCollection("sections", (section) => /^de/.test(section.id))
// const { data } = await getEntry("pages", "de")
const data = { lang: "de", title: "Einführung EUCs", CSS: "EUC Überblick" }
const warst = sections.map(async (section) => (await section.render()).Content)
---
<Layout lang={data.lang} title={data.title} CSS={data.CSS}>
{warst}
</Layout>