Skip to content

Commit

Permalink
Add suffix variable to page title.
Browse files Browse the repository at this point in the history
  • Loading branch information
jill64 committed Nov 6, 2023
1 parent e39a4a8 commit 0afd5fe
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/site/src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
$: title = 'Wraith CI'
$: description = '👻 CI suite in the dark'
$: suffix = $theme === 'dark' ? '-dark' : ''
$: suffix
</script>

<Toaster />
Expand All @@ -22,9 +23,9 @@
image="{$page.url.origin}/og-image.png"
/>
<svelte:head>
<link rel="icon" href="/favicon{suffix}.png" />
<!-- <link rel="icon" href="/favicon{suffix}.png" />
<link rel="icon" href="/favicon{suffix}.svg" type="image/svg+xml" />
<link rel="apple-touch-icon" href="/apple-touch-icon{suffix}.png" />
<link rel="apple-touch-icon" href="/apple-touch-icon{suffix}.png" /> -->
<title>{title}</title>
<meta name="description" content={description} />
</svelte:head>
Expand Down

0 comments on commit 0afd5fe

Please sign in to comment.