Formatting and config
This commit is contained in:
parent
ac8a31795e
commit
52fd781b60
23 changed files with 521 additions and 515 deletions
16
src/pages/[lang]/index.astro
Normal file
16
src/pages/[lang]/index.astro
Normal 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>
|
Loading…
Add table
Add a link
Reference in a new issue