Skip to content

Commit

Permalink
Add legal notice page
Browse files Browse the repository at this point in the history
  • Loading branch information
brandstetterm committed Jan 8, 2024
1 parent 948b0ba commit 0b7f541
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/pages/[lang]/Legal/Impressum.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
import type {GetStaticPaths} from "astro";
import LegalLayout from "../../../layouts/LegalLayout.astro";
import getTranslatedContent from "../../../utils/directus.ts";
import "./Legal.scss";
const {lang} = Astro.params;
const content = await getTranslatedContent("Impressum", lang!);
export const getStaticPaths = (() => {
return [
{params: {lang: "en"}},
{params: {lang: "de"}},
];
}) satisfies GetStaticPaths;
---

<LegalLayout>
<section set:html={content.impressum} />
</LegalLayout>

0 comments on commit 0b7f541

Please sign in to comment.