nicco.io/src/routes/privacy.svelte

31 lines
705 B
Svelte
Raw Normal View History

2021-08-02 09:53:08 +02:00
<script lang="ts" context="module">
import type { Load } from '@sveltejs/kit'
export const prerender = true
export const load: Load = async ({ fetch }) => {
return {
props: {
data: await fetch('/api/pages/privacy.json').then((r) => r.json()),
},
}
2020-09-24 19:43:06 +02:00
}
</script>
2021-08-02 09:53:08 +02:00
<script lang="ts">
import WPAdapter from '$lib/components/WPAdapter.svelte'
import SimplePage from '$lib/components/SimplePage.svelte'
import type { Page } from '$lib/api'
2020-09-24 19:43:06 +02:00
2021-08-02 09:53:08 +02:00
export let data: Page
2020-07-27 12:36:55 +02:00
</script>
2021-08-02 09:53:08 +02:00
<svelte:head>
<title>{data.title}</title>
</svelte:head>
<SimplePage title={data.title} expanded={false}>
{#if data.content}
<WPAdapter content={data.content} />
{/if}
2020-07-27 12:36:55 +02:00
</SimplePage>