]> git.r.bdr.sh - rbdr/prompt/blob - src/routes/[locale]/index.svelte
Pass public path variable
[rbdr/prompt] / src / routes / [locale] / index.svelte
1 <script context="module">
2 export async function load({ page }) {
3 return {
4 props: {
5 locale: page.params.locale
6 }
7 }
8 }
9 </script>
10 <script>
11 import NewPrompt from '$lib/components/new_prompt.svelte';
12 export let locale;
13 </script>
14 <svelte:head>
15 <title>prompt @ unlimited.pizza</title>
16 <meta name="description" content="Writing prompts delivered to your DOOR" />
17 </svelte:head>
18 <NewPrompt locale={locale} />