Skip to content

Commit

Permalink
site: fix 404 page by upgrading SvelteKit and avoiding null reference (
Browse files Browse the repository at this point in the history
  • Loading branch information
benmccann authored Oct 23, 2023
1 parent 522d06a commit 3d20b39
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 32 deletions.
55 changes: 25 additions & 30 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion sites/svelte.dev/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"devDependencies": {
"@resvg/resvg-js": "^2.4.1",
"@sveltejs/adapter-vercel": "^3.0.3",
"@sveltejs/kit": "^1.24.1",
"@sveltejs/kit": "^1.26.0",
"@sveltejs/site-kit": "6.0.0-next.50",
"@sveltejs/vite-plugin-svelte": "^2.4.6",
"@types/cookie": "^0.5.2",
Expand Down
2 changes: 1 addition & 1 deletion sites/svelte.dev/src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
</script>
<svelte:head>
{#if !$page.route.id.startsWith('/blog/')}
{#if !$page.route.id?.startsWith('/blog/')}
<meta name="twitter:card" content="summary" />
<meta name="twitter:image" content="https://svelte.dev/images/twitter-thumbnail.jpg" />
<meta name="og:image" content="https://svelte.dev/images/twitter-thumbnail.jpg" />
Expand Down

0 comments on commit 3d20b39

Please sign in to comment.