Update titles

This commit is contained in:
Fred Boniface 2023-06-12 21:53:07 +01:00
parent eec74572ca
commit 2e11d3d484
2 changed files with 3 additions and 4 deletions

View File

@ -1,7 +1,7 @@
<script> <script>
import Menu from '../components/header.svelte' import Menu from '../components/header.svelte'
export const prerender = true; export const prerender = true;
const title = "Test Route" const title = "owlboard-svelte"
</script> </script>
<svelte:head> <svelte:head>
<title>OwlBoard - {title}</title> <title>OwlBoard - {title}</title>
@ -9,7 +9,6 @@ const title = "Test Route"
<Menu {title} /> <Menu {title} />
<h1>owlboard-svelte</h1>
<p><a href="/public-board?zzz">public-board</a></p> <p><a href="/public-board?zzz">public-board</a></p>

View File

@ -1,9 +1,9 @@
<script> <script>
import Menu from '../../components/header.svelte' import Menu from '../../components/header.svelte'
const testText = "This should not appear in markup" const testText = "This should not appear in markup"
const title = "Public Board"
</script> </script>
<Menu /> <Menu {title} />
<h1>Test Route</h1>
<p>{testText}</p> <p>{testText}</p>