X-Git-Url: https://git.r.bdr.sh/rbdr/forum/blobdiff_plain/bd8e98d7e24c4dbaee7db6ec7955f7c2f6d396a6..4e6be9f49b9697d9577014b3ee2b7988129823a9:/src/routes/a/%5Bid%5D.svelte?ds=sidebyside

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