123456789101112131415161718192021222324 |
- <script lang="typescript">
- // @ts-ignore -- generated package
- import { stores } from "@sapper/app"; // eslint-disable-line import/no-unresolved
- // You may not want to use `segment`, but it is passed for the time being and will
- // create a warning if not expected: https://github.com/sveltejs/sapper-template/issues/210
- // https://github.com/sveltejs/sapper/issues/824
- export let segment: string = "";
- // Silence unused export property warning
- if (segment) {};
- const { page } = stores();
- let path: string;
- $: path = $page.path.slice(1);
- </script>
- <svelte:head>
- <title>
- {path ? path.charAt(0).toUpperCase() + path.slice(1) : "Index"}
- </title>
- </svelte:head>
- <slot />
|