diff --git a/src/routes/+layout.js b/src/routes/+layout.js new file mode 100644 index 0000000..2fffad0 --- /dev/null +++ b/src/routes/+layout.js @@ -0,0 +1,7 @@ +export const load = ({ url }) => { + const { pathname } = url + + return { + pathname + } +} \ No newline at end of file diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index 53c75c9..d1f9f94 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -1,14 +1,22 @@
-
- -
+ {#key data.pathname} +
+ +
+ {/key}