Update Backend
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
---
|
||||
import {CollectionEntry, getCollection} from "astro:content";
|
||||
import {type CollectionEntry, getCollection} from "astro:content";
|
||||
import {astroI18n, createGetStaticPaths} from "astro-i18n";
|
||||
import PageLayout from "../layouts/PageLayout.astro";
|
||||
import LanguageWarning from "../components/LanguageWarning.astro";
|
||||
@@ -41,7 +41,7 @@ export const getStaticPaths = createGetStaticPaths(async () => {
|
||||
}));
|
||||
});
|
||||
|
||||
const {page, german} = Astro.props;
|
||||
const {page, german} = Astro.props as { page: CollectionEntry<"pages">, german: boolean };
|
||||
const {Content} = await page.render();
|
||||
---
|
||||
|
||||
|
||||
Reference in New Issue
Block a user