From 65ad14a929c643281a83909a1ef0a08046171d2e Mon Sep 17 00:00:00 2001 From: Jorge Ruvalcaba Date: Thu, 11 Mar 2021 15:32:28 -0600 Subject: [PATCH 1/2] Adding notion workspace id steps --- readme.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/readme.md b/readme.md index 6bdeb7b..98bac25 100644 --- a/readme.md +++ b/readme.md @@ -50,6 +50,8 @@ All you really need to do to get started is edit `rootNotionPageId`. It defaults You'll want to make your root Notion page **public** and then copy the link to your clipboard. Then extract the last part of the URL that looks like `d1b5dcf8b9ff425b8aef5ce6f0730202`, which is your page's Notion iD. +In order to find your Notion workspace ID, just load any of your site's page into your browser as you would normally, and open up the developer console. There will be a global variable that you can access called `block` which is the Notion data for the current page, and you just have to type `block.space_id` which will print out that page's workspace ID. + I recommend setting up a collection on your home page (I use an inline gallery [here](https://notion.so/78fc5a4b88d74b0e824e29407e9f1ec1)) that contains all of your articles / projects / content. There are no structural constraints on your Notion workspace, however, so feel free to add content as you would normally in Notion. There are a few parts of the code with logic to only show comments on blog post pages (collection item detail pages). ## URL Paths From 79364a44c26bb8c07284b3733f377f4a82649d83 Mon Sep 17 00:00:00 2001 From: Travis Fischer Date: Fri, 12 Mar 2021 14:22:58 -0500 Subject: [PATCH 2/2] Update readme.md --- readme.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/readme.md b/readme.md index 98bac25..0d4510f 100644 --- a/readme.md +++ b/readme.md @@ -50,9 +50,9 @@ All you really need to do to get started is edit `rootNotionPageId`. It defaults You'll want to make your root Notion page **public** and then copy the link to your clipboard. Then extract the last part of the URL that looks like `d1b5dcf8b9ff425b8aef5ce6f0730202`, which is your page's Notion iD. -In order to find your Notion workspace ID, just load any of your site's page into your browser as you would normally, and open up the developer console. There will be a global variable that you can access called `block` which is the Notion data for the current page, and you just have to type `block.space_id` which will print out that page's workspace ID. +In order to find your Notion workspace ID (optional), just load any of your site's pages into your browser and open up the developer console. There will be a global variable that you can access called `block` which is the Notion data for the current page, and you just have to type `block.space_id` which will print out your page's workspace ID. -I recommend setting up a collection on your home page (I use an inline gallery [here](https://notion.so/78fc5a4b88d74b0e824e29407e9f1ec1)) that contains all of your articles / projects / content. There are no structural constraints on your Notion workspace, however, so feel free to add content as you would normally in Notion. There are a few parts of the code with logic to only show comments on blog post pages (collection item detail pages). +I recommend setting up a collection on your home page (optional; I use an inline gallery [here](https://notion.so/78fc5a4b88d74b0e824e29407e9f1ec1)) that contains all of your articles / projects / content. There are no structural constraints on your Notion workspace, however, so feel free to add content as you would normally in Notion. There are a few parts of the code with logic to only show comments on blog post pages (collection item detail pages). ## URL Paths