From 9b8356c68373a4705d0f346fc5489d96edb1570a Mon Sep 17 00:00:00 2001 From: Randall Hand Date: Fri, 25 Nov 2022 11:17:31 -0500 Subject: [PATCH] Squashed commit of the following: commit c638fb2adae3b14dadfe9c9d21050a491a97108b Author: Randall Hand Date: Fri Nov 25 10:58:01 2022 -0500 Add privacy policy in footer commit fce54574b5c63e9bef91e947836799040ba43633 Author: Randall Hand Date: Thu Nov 24 15:19:34 2022 -0500 Added disqus_recommendations commit 33f5b469e8aa0f76c3942e88c1dc797a0956ed1d Author: Randall Hand Date: Sun Nov 20 14:29:00 2022 -0500 Moved GA code outside of useEffect commit 6300ca3cfb21d1080eca27599fa86f40f7abdbd5 Author: Randall Hand Date: Sun Nov 20 12:10:57 2022 -0500 Simplified GA PageView tracking commit 338ed22a07baf32b9a52bbf48d2c0884a1757780 Author: Randall Hand Date: Sun Nov 20 11:53:21 2022 -0500 BugFix for type conversion : First launch was a boolean commit 0b676e04ab88b0ff7379627146ecac5243bab8ff Author: Randall Hand Date: Sun Nov 20 11:44:35 2022 -0500 Removed unnecessary debug output commit 81630598dc00263697cfe3f2a4fe1272a6f46c62 Author: Randall Hand Date: Sun Nov 20 11:43:14 2022 -0500 Removing debug output commit 6d99289d56e5a77a06a3e3a18d5d2088db86eacf Author: Randall Hand Date: Sun Nov 20 10:53:50 2022 -0500 Improved nav bar commit bc278a70785fcc77d3087ba97d7f4891bf2e3a0c Author: Randall Hand Date: Sun Nov 20 10:30:33 2022 -0500 Switch from react-ga to react-ga4 commit 2df7deea347ffa22a2148954d24eee8093607ee0 Author: Randall Hand Date: Sun Nov 20 09:58:31 2022 -0500 Added in params for GA & Disqus commit 138eb7cbafd649c11a6e86658b72c2c89038661e Author: Randall Hand Date: Sat Nov 19 19:34:38 2022 -0500 New file - copy of other commit 90d572010b7b4c25767ea2e9c96f123a57d29e12 Author: Randall Hand Date: Sat Nov 19 19:33:23 2022 -0500 Added 'post' dir commit 150a16e26e1fb2e013753b93ebc465bc1b79f67e Author: Randall Hand Date: Sat Nov 19 18:52:15 2022 -0500 Fix for blank blocks commit 8cbd3042d748715543f31a2f6474a233c6ddfb40 Author: Randall Hand Date: Sat Nov 19 18:21:09 2022 -0500 Fix disqus args commit 6babc33209bf62d276b6218e63e28873bb4a06b4 Author: Randall Hand Date: Sat Nov 19 18:05:54 2022 -0500 Remove GitHubShare button commit 0cbf6b981084943ce83718c3491a95733aeaaf9f Merge: 9ea1b3c 5446dcc Author: Randall Hand Date: Sat Nov 19 18:01:18 2022 -0500 Merge pull request #1 from Yeraze/add_disqus Add disqus commit 5446dcc4da5aac32d5d8476f89590f63831fe8d4 Author: Randall Hand Date: Sat Nov 19 17:52:28 2022 -0500 Added in Disqus Comments (maybe?) commit 6c4ae9793912b5e37e1e91072288d7cf5ad98a6e Author: Randall Hand Date: Sat Nov 19 12:02:11 2022 -0500 Initial config commit --- components/Footer.tsx | 14 +- components/NotionPage.tsx | 22 +- components/PageActions.tsx | 1 + lib/config.ts | 7 +- lib/map-page-url.ts | 4 +- lib/resolve-notion-page.ts | 7 +- lib/site-config.ts | 4 + package-lock.json | 11326 +++++++++++++++++++++++++++++++++++ package.json | 2 + pages/_app.tsx | 10 +- site.config.ts | 9 +- styles/global.css | 9 + yarn.lock | 7038 +++++++++++----------- 13 files changed, 14871 insertions(+), 3582 deletions(-) create mode 100644 package-lock.json diff --git a/components/Footer.tsx b/components/Footer.tsx index 4ae849af12..de15f38a44 100644 --- a/components/Footer.tsx +++ b/components/Footer.tsx @@ -14,12 +14,14 @@ import * as config from '@/lib/config' import { useDarkMode } from '@/lib/use-dark-mode' import styles from './styles.module.css' +import { useNotionContext } from 'react-notion-x' // TODO: merge the data and icons from PageSocial with the social links in Footer export const FooterImpl: React.FC = () => { const [hasMounted, setHasMounted] = React.useState(false) const { isDarkMode, toggleDarkMode } = useDarkMode() + const { mapPageUrl } = useNotionContext() const onToggleDarkMode = React.useCallback( (e) => { @@ -36,7 +38,17 @@ export const FooterImpl: React.FC = () => { return (