From 9171e9770082edf2c4baf1cf4574fead7512abfe Mon Sep 17 00:00:00 2001 From: si1k <19499950+si1k@users.noreply.github.com> Date: Fri, 10 Jun 2022 10:48:26 -0400 Subject: [PATCH 01/13] Adding meta tags to remove bars on safari browser --- components/PageHead.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/components/PageHead.tsx b/components/PageHead.tsx index 831f26986c..cc74c12be2 100644 --- a/components/PageHead.tsx +++ b/components/PageHead.tsx @@ -26,7 +26,13 @@ export const PageHead: React.FC< + + + From db250cdb6e06bf2798e383ce89263f54eeae417f Mon Sep 17 00:00:00 2001 From: si1k <19499950+si1k@users.noreply.github.com> Date: Fri, 10 Jun 2022 11:35:15 -0400 Subject: [PATCH 02/13] Updating bar style to black --- components/PageHead.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/PageHead.tsx b/components/PageHead.tsx index cc74c12be2..1101123f4a 100644 --- a/components/PageHead.tsx +++ b/components/PageHead.tsx @@ -32,7 +32,7 @@ export const PageHead: React.FC< From 3b1113d958c19d1be49b94f27468ec2a50b1dec0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eduardo=20Flor=C3=AAncio?= Date: Mon, 29 Aug 2022 17:51:51 -0300 Subject: [PATCH 03/13] fix: dark mode color when loading page --- components/styles.module.css | 1 + 1 file changed, 1 insertion(+) diff --git a/components/styles.module.css b/components/styles.module.css index 011b197f61..a33776337b 100644 --- a/components/styles.module.css +++ b/components/styles.module.css @@ -21,6 +21,7 @@ caret-color: rgb(55, 53, 47); font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, 'Apple Color Emoji', Arial, sans-serif, 'Segoe UI Emoji', 'Segoe UI Symbol'; + background-color: var(--bg-color); } .loadingIcon { From 29014998eabe22c3ddb8a6b0ebab55ab291d8811 Mon Sep 17 00:00:00 2001 From: WonJung Kim Date: Tue, 7 Mar 2023 12:25:04 +0900 Subject: [PATCH 04/13] filter non-public page on sitemap --- lib/get-site-map.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/get-site-map.ts b/lib/get-site-map.ts index 701840642b..984e3dbdb9 100644 --- a/lib/get-site-map.ts +++ b/lib/get-site-map.ts @@ -1,4 +1,4 @@ -import { getAllPagesInSpace, uuidToId } from 'notion-utils' +import { getAllPagesInSpace, uuidToId, getPageProperty } from 'notion-utils' import pMemoize from 'p-memoize' import * as config from './config' @@ -47,6 +47,11 @@ async function getAllPagesImpl( throw new Error(`Error loading page "${pageId}"`) } + const block = recordMap.block[pageId]?.value + if (!(getPageProperty('Public', block, recordMap) ?? true)) { + return map + } + const canonicalPageId = getCanonicalPageId(pageId, recordMap, { uuid }) From 9c8e907cdb635c16560515e92fa2234a18afcb80 Mon Sep 17 00:00:00 2001 From: engage_intelllect <61082194+engageintellect@users.noreply.github.com> Date: Fri, 10 Mar 2023 19:47:50 -0800 Subject: [PATCH 05/13] Make header scrollable Longer page titles text to overflow off the right side of the screen. This small change will enable users to scroll the header horizontally on mobile devices so they can read the whole page title --- styles/notion.css | 1 + 1 file changed, 1 insertion(+) diff --git a/styles/notion.css b/styles/notion.css index acf79e41a1..b573dc1d31 100644 --- a/styles/notion.css +++ b/styles/notion.css @@ -42,6 +42,7 @@ .notion-header .notion-nav-header { max-width: 1100px; margin: 0 auto; + overflow-x: auto; } .notion-nav-header-rhs { From e672175fa14b5fedebc54442e1dd5c8054c338c2 Mon Sep 17 00:00:00 2001 From: ohplz Date: Sun, 12 Mar 2023 22:48:05 +0800 Subject: [PATCH 06/13] feature: optimize header's backdrop-filter in dark mode. --- styles/notion.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/styles/notion.css b/styles/notion.css index e9585f9432..13ceb9016c 100644 --- a/styles/notion.css +++ b/styles/notion.css @@ -364,7 +364,7 @@ .dark-mode .notion-header { background: transparent; box-shadow: inset 0 -1px 0 0 rgba(0, 0, 0, 0.1); - backdrop-filter: saturate(180%) blur(8px); + backdrop-filter: saturate(180%) blur(20px); } /* Workaround for Firefox not supporting backdrop-filter yet */ From e6be8cad5e5121dad008f9418eab9e13cc466a00 Mon Sep 17 00:00:00 2001 From: Hongzzz Date: Mon, 20 Mar 2023 12:38:04 +0800 Subject: [PATCH 07/13] feature: Update copyright year automatically --- components/Footer.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/Footer.tsx b/components/Footer.tsx index 4ae849af12..c1ac59aebf 100644 --- a/components/Footer.tsx +++ b/components/Footer.tsx @@ -20,6 +20,7 @@ import styles from './styles.module.css' export const FooterImpl: React.FC = () => { const [hasMounted, setHasMounted] = React.useState(false) const { isDarkMode, toggleDarkMode } = useDarkMode() + const currentYear = new Date().getFullYear() const onToggleDarkMode = React.useCallback( (e) => { @@ -35,7 +36,7 @@ export const FooterImpl: React.FC = () => { return (