Skip to content

Commit 1bbd55f

Browse files
committed
feat: sveltekit seo, bump dev deps
1 parent 2ee0246 commit 1bbd55f

File tree

4 files changed

+50
-19
lines changed

4 files changed

+50
-19
lines changed

package.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@
2727
},
2828
"dependencies": {
2929
"@internationalized/date": "^3.12.0",
30+
"@noble/hashes": "^2.0.1",
3031
"@oslojs/binary": "^1.0.0",
3132
"@oslojs/crypto": "^1.0.1",
3233
"@oslojs/encoding": "^1.1.0",
3334
"@oslojs/otp": "^1.1.0",
3435
"@pilcrowjs/object-parser": "^0.0.4",
3536
"arctic": "^3.7.0",
36-
"@noble/hashes": "^2.0.1",
3737
"d3-scale": "^4.0.2",
3838
"d3-shape": "^3.2.0",
3939
"dotenv": "^17.3.1",
@@ -65,15 +65,16 @@
6565
"drizzle-kit": "^1.0.0-beta.16-ea816b6",
6666
"drizzle-orm": "^1.0.0-beta.16-ea816b6",
6767
"layerchart": "2.0.0-next.46",
68-
"oxlint": "^1.51.0",
68+
"oxlint": "^1.52.0",
6969
"phosphor-svelte": "^3.1.0",
7070
"prettier": "^3.8.1",
7171
"prettier-plugin-svelte": "^3.5.1",
7272
"prettier-plugin-tailwindcss": "^0.7.2",
73-
"svelte": "^5.53.7",
74-
"svelte-check": "^4.4.4",
73+
"svelte": "^5.53.9",
74+
"svelte-check": "^4.4.5",
7575
"svelte-render-scan": "^1.1.0",
76-
"svelte-sonner": "^1.0.8",
76+
"svelte-seo": "^2.0.0",
77+
"svelte-sonner": "^1.1.0",
7778
"sveltekit-sse": "^0.14.3",
7879
"tailwind-merge": "^3.5.0",
7980
"tailwind-variants": "^3.2.2",

pnpm-lock.yaml

Lines changed: 18 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/routes/+layout.svelte

Lines changed: 25 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
import { dev } from "$app/environment";
2525
import { page } from "$app/state";
2626
import { IsMobile } from "$/hooks/is-mobile.svelte.js";
27+
import SvelteSeo from "svelte-seo";
2728
2829
const { children, data } = $props();
2930
@@ -80,27 +81,39 @@
8081

8182
<svelte:head>
8283
<link rel="icon" href={favicon} />
83-
<title>{site.name}: {site.description}</title>
84-
<meta name="author" content={site.author} />
85-
<meta name="description" content={site.description} />
86-
<meta name="keywords" content={site.keywords} />
87-
<meta property="og:title" content={site.name} />
88-
<meta property="og:description" content={site.description} />
89-
<meta property="og:site_name" content={site.name} />
90-
<meta property="og:image" content={site.ogImage} />
91-
<meta property="og:url" content={site.url} />
92-
<meta property="og:type" content="website" />
9384
</svelte:head>
9485

9586
<svelte:window onclose={() => invalidateAll()} />
9687

88+
<SvelteSeo
89+
title="{site.name} | {site.description}"
90+
description={site.description}
91+
keywords={site.keywords}
92+
canonical={site.url}
93+
openGraph={{
94+
title: site.name,
95+
description: site.description,
96+
url: site.url,
97+
site_name: site.name,
98+
images: [
99+
{
100+
url: site.ogImage,
101+
width: 1200,
102+
height: 630,
103+
alt: site.name,
104+
},
105+
],
106+
type: "website",
107+
}}
108+
/>
109+
97110
<main>
98111
{#if data.session && data.user && (data.user.isOauthUser || data.user.emailVerified) && (!data.user.registeredTwoFactor || data.session.twoFactorVerified) && page.url.pathname !== "/" && page.url.searchParams.get("act") !== "2fa-setup"}
99112
<div class="relative h-screen w-full overflow-hidden">
100113
<Header user={data.user} />
101114

102115
<div class="no-scrollbar h-full overflow-y-auto">
103-
<main class="flex min-h-full justify-between gap-4 px-4 pt-16">
116+
<div class="flex min-h-full justify-between gap-4 px-4 pt-16">
104117
<aside
105118
in:scale={{ duration: 150 }}
106119
class={[
@@ -116,7 +129,7 @@
116129
<div class="flex min-w-0 flex-1 flex-col gap-4 py-1">
117130
{@render children()}
118131
</div>
119-
</main>
132+
</div>
120133
</div>
121134
</div>
122135
{:else}

src/routes/+page.svelte

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@
1414
1515
let { data } = $props();
1616
</script>
17-
18-
<div class="relative min-h-screen overflow-hidden bg-background">
17+
<div class="relative min-h-screen overflow-hidden bg-background">
1918
<LandingNav user={data.user} session={data.session} />
2019

2120
<!-- Hero Section with scroll indicator -->

0 commit comments

Comments
 (0)