File tree Expand file tree Collapse file tree 7 files changed +257
-301
lines changed Expand file tree Collapse file tree 7 files changed +257
-301
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ export const FooterImpl: React.FC = () => {
36
36
37
37
return (
38
38
< footer className = { styles . footer } >
39
- < div className = { styles . copyright } > Copyright { currentYear } { config . author } </ div >
39
+ < div className = { styles . copyright } > Copyright { currentYear } { config . author } </ div >
40
40
41
41
< div className = { styles . settings } >
42
42
{ hasMounted && (
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ import styles from './styles.module.css'
35
35
const Code = dynamic ( ( ) =>
36
36
import ( 'react-notion-x/build/third-party/code' ) . then ( async ( m ) => {
37
37
// add / remove any prism syntaxes here
38
- await Promise . all ( [
38
+ await Promise . allSettled ( [
39
39
import ( 'prismjs/components/prism-markup-templating.js' ) ,
40
40
import ( 'prismjs/components/prism-markup.js' ) ,
41
41
import ( 'prismjs/components/prism-bash.js' ) ,
Original file line number Diff line number Diff line change 1
- import { getAllPagesInSpace , uuidToId } from 'notion-utils'
1
+ import { getAllPagesInSpace , uuidToId , getPageProperty } from 'notion-utils'
2
2
import pMemoize from 'p-memoize'
3
3
4
4
import * as config from './config'
@@ -47,6 +47,11 @@ async function getAllPagesImpl(
47
47
throw new Error ( `Error loading page "${ pageId } "` )
48
48
}
49
49
50
+ const block = recordMap . block [ pageId ] ?. value
51
+ if ( ! ( getPageProperty < boolean | null > ( 'Public' , block , recordMap ) ?? true ) ) {
52
+ return map
53
+ }
54
+
50
55
const canonicalPageId = getCanonicalPageId ( pageId , recordMap , {
51
56
uuid
52
57
} )
Original file line number Diff line number Diff line change 36
36
"fathom-client" : " ^3.4.1" ,
37
37
"got" : " ^12.0.3" ,
38
38
"isomorphic-unfetch" : " ^3.1.0" ,
39
- "lqip-modern" : " ^1.2 .0" ,
40
- "next" : " ^12.3.1 " ,
39
+ "lqip-modern" : " ^2.0 .0" ,
40
+ "next" : " 12 " ,
41
41
"notion-client" : " ^6.15.6" ,
42
42
"notion-types" : " ^6.15.6" ,
43
43
"notion-utils" : " ^6.15.6" ,
49
49
"react-dom" : " ^18.2.0" ,
50
50
"react-notion-x" : " ^6.15.6" ,
51
51
"react-tweet-embed" : " ^2.0.0" ,
52
- "react-use" : " ^17.3 .2" ,
52
+ "react-use" : " ^17.4 .2" ,
53
53
"rss" : " ^1.2.2"
54
54
},
55
55
"devDependencies" : {
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ export default siteConfig({
49
49
pageUrlOverrides : null ,
50
50
51
51
// whether to use the default notion navigation style or a custom one with links to
52
- // important pages
52
+ // important pages. To use `navigationLinks`, set `navigationStyle` to `custom`.
53
53
navigationStyle : 'default'
54
54
// navigationStyle: 'custom',
55
55
// navigationLinks: [
Original file line number Diff line number Diff line change 386
386
.notion-block-260baa77f1e1428b97fb14ac99c7c385 {
387
387
display : none;
388
388
}
389
+
390
+ .notion-search .searchBar {
391
+ box-shadow : var (--fg-color-0 ) 0px 1px 0px ;
392
+ }
393
+
394
+ .notion-search .noResults {
395
+ color : var (--fg-color-3 );
396
+ }
397
+
398
+ .notion-search .noResultsDetail {
399
+ color : var (--fg-color-2 );
400
+ }
401
+
402
+ .notion-equation .notion-equation-block {
403
+ align-items : center;
404
+ }
You can’t perform that action at this time.
0 commit comments