File tree Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -28,9 +28,15 @@ This is a plug and play library for [`Sveltekit`](https://kit.svelte.dev/) proje
28
28
29
29
export const prerender = true ;
30
30
31
- initNotion({
32
- databaseId: PUBLIC_NOTION_DATABASE_ID, //from .env
33
- notionToken: PUBLIC_NOTION_TOKEN, //from .env
31
+ initNotionBlog({
32
+ tokens: {
33
+ databaseId: PUBLIC_NOTION_DATABASE_ID, //from .env
34
+ notionToken: PUBLIC_NOTION_TOKEN, //from .env
35
+ },
36
+ settings: {
37
+ blogTitle: " Notion Blog" ,
38
+ blogDescription: " A blog powered by Notion"
39
+ }
34
40
});
35
41
` ` `
36
42
Original file line number Diff line number Diff line change @@ -10,7 +10,12 @@ export declare const load: () => Promise<{
10
10
message : string ;
11
11
} ;
12
12
pages ?: undefined ;
13
+ settings ?: undefined ;
13
14
} | {
14
15
pages : import ( "@notionhq/client/build/src/api-endpoints" ) . PageObjectResponse [ ] ;
16
+ settings : {
17
+ blogTitle : string ;
18
+ blogDescription : string ;
19
+ } ;
15
20
error ?: undefined ;
16
21
} | undefined > ;
You can’t perform that action at this time.
0 commit comments