X-Git-Url: https://git.r.bdr.sh/rbdr/forum/blobdiff_plain/bd8e98d7e24c4dbaee7db6ec7955f7c2f6d396a6..6ccc6f60fc85e665c8a07a169efbe8d09c9d9e8e:/src/routes/a/%5Bid%5D.svelte

diff --git a/src/routes/a/[id].svelte b/src/routes/a/[id].svelte
index 1b6c705..524535e 100644
--- a/src/routes/a/[id].svelte
+++ b/src/routes/a/[id].svelte
@@ -1,10 +1,9 @@
-<script>
-  export async function load(ctx) {
-    let id = ctx.page.params.id
-    return { props: { id }}
-  }
+<script lang="ts" context="module">
+	export const load = ({ params: { id } }) => ({ props: { id } });
+</script>
 
-  import Author from '$components/author/author.svelte';
+<script lang="ts">
+	import Author from '$lib/components/author/author.svelte';
 </script>
 
-<Author/>
+<Author />
