-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
948b0ba
commit 0b22b2e
Showing
8 changed files
with
48 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
src/pages/[lang]/Legal/Cookies.astro → src/pages/[lang]/cookie-policy.astro
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
src/pages/[lang]/Legal/Privacy.astro → src/pages/[lang]/data-protection.astro
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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("Legal_Notice", lang!); | ||
export const getStaticPaths = (() => { | ||
return [ | ||
{params: {lang: "en"}}, | ||
{params: {lang: "de"}}, | ||
]; | ||
}) satisfies GetStaticPaths; | ||
--- | ||
|
||
<LegalLayout> | ||
<section set:html={content.legal_notice} /> | ||
</LegalLayout> |
4 changes: 2 additions & 2 deletions
4
src/pages/[lang]/Legal/Terms.astro → src/pages/[lang]/terms.astro
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,14 @@ | ||
{ | ||
"extends": "astro/tsconfigs/strict", | ||
"compilerOptions": { | ||
"baseUrl": ".", | ||
"jsx": "react-jsx", | ||
"jsxImportSource": "react" | ||
"jsxImportSource": "react", | ||
"paths": { | ||
"@assets/*": ["src/assets/*"], | ||
"@components/*": ["src/components/*"], | ||
"@utils/*": ["src/utils/*"], | ||
"@layouts/*": ["src/layouts/*"], | ||
} | ||
} | ||
} | ||
} |