mirror of
https://github.com/thiloho/thiloho.github.io.git
synced 2025-11-22 10:21:36 +01:00
Initialize project with general functionality
This commit is contained in:
16
src/pages/legal-disclosure.astro
Normal file
16
src/pages/legal-disclosure.astro
Normal file
@@ -0,0 +1,16 @@
|
||||
---
|
||||
import PageLayout from "../layouts/PageLayout.astro";
|
||||
import { getEntry, render } from "astro:content";
|
||||
|
||||
const legalContent = await getEntry("legal", "legal");
|
||||
|
||||
if (!legalContent) {
|
||||
throw new Error();
|
||||
}
|
||||
|
||||
const { Content } = await render(legalContent);
|
||||
---
|
||||
|
||||
<PageLayout title="Legal Disclosure" metaDescription="Legal Disclosure">
|
||||
<Content />
|
||||
</PageLayout>
|
||||
Reference in New Issue
Block a user