Skip to content

Commit 3d116eb

Browse files
committed
feat: add title & fix notion issues
1 parent 99a1b81 commit 3d116eb

File tree

3 files changed

+2
-1
lines changed

3 files changed

+2
-1
lines changed

src/app.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<meta charset="utf-8" />
55
<link rel="icon" href="%sveltekit.assets%/favicon.png" />
66
<meta name="viewport" content="width=device-width" />
7+
<title>koding.dev | Home</title>
78
%sveltekit.head%
89
</head>
910
<body>

src/routes/+page.server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export const load: PageServerLoad = async ({ fetch }) => {
2626

2727
return {
2828
name: (properties.Name as any).title[0].plain_text,
29-
description: (properties.Description as any).rich_text[0].plain_text,
29+
description: (properties.Description as any).rich_text[0]?.plain_text ?? "Very mysterious!",
3030
website: (properties.Website as any).url,
3131

3232
logo: (page.icon as any).file.url,

static/favicon.png

1.13 KB
Loading

0 commit comments

Comments
 (0)