From 29014998eabe22c3ddb8a6b0ebab55ab291d8811 Mon Sep 17 00:00:00 2001 From: WonJung Kim Date: Tue, 7 Mar 2023 12:25:04 +0900 Subject: [PATCH 1/8] 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 7018406..984e3db 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 6bf730ecd5e4ed9ec7c05ece794f05ea3b5a4809 Mon Sep 17 00:00:00 2001 From: kaichi Date: Fri, 31 Mar 2023 14:40:11 +0800 Subject: [PATCH 2/8] fix search dialog for dark mode --- styles/notion.css | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/styles/notion.css b/styles/notion.css index e9585f9..e417292 100644 --- a/styles/notion.css +++ b/styles/notion.css @@ -386,3 +386,15 @@ .notion-block-260baa77f1e1428b97fb14ac99c7c385 { display: none; } + +.notion-search .searchBar { + box-shadow: var(--fg-color-0) 0px 1px 0px; +} + +.notion-search .noResults { + color: var(--fg-color-3); +} + +.notion-search .noResultsDetail { + color: var(--fg-color-2); +} From 6000cfa3bb8658b9b529868e33a5f35517544733 Mon Sep 17 00:00:00 2001 From: An Nguyen Q Date: Fri, 19 May 2023 00:10:29 +0700 Subject: [PATCH 3/8] feat(footer): get copyright year from current date --- components/Footer.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/Footer.tsx b/components/Footer.tsx index 4ae849a..5e67f5d 100644 --- a/components/Footer.tsx +++ b/components/Footer.tsx @@ -35,7 +35,7 @@ export const FooterImpl: React.FC = () => { return (