From 1d6f4084d2cb012bad3f23f3cb4ad56c8b781a48 Mon Sep 17 00:00:00 2001 From: Travis Fischer Date: Tue, 26 Jan 2021 00:29:52 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/NotionPage.tsx | 3 ++- components/PageActions.tsx | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/components/NotionPage.tsx b/components/NotionPage.tsx index a97161f..d8f2668 100644 --- a/components/NotionPage.tsx +++ b/components/NotionPage.tsx @@ -97,10 +97,11 @@ export const NotionPage: React.FC = ({ const socialImage = config.api.renderSocialImage(pageId) const socialDescription = getPageDescription(block, recordMap) ?? config.description + let comments: React.ReactNode = null let pageAside: React.ReactChild = null - // only display comments on blog post pages + // only display comments and page actions on blog post pages if (isBlogPost) { if (config.utterancesGitHubRepo) { comments = ( diff --git a/components/PageActions.tsx b/components/PageActions.tsx index cc387e4..fd808af 100644 --- a/components/PageActions.tsx +++ b/components/PageActions.tsx @@ -4,6 +4,9 @@ import { AiOutlineRetweet } from 'react-icons/ai' import styles from './styles.module.css' +/** + * @see https://developer.twitter.com/en/docs/twitter-for-websites/web-intents/overview + */ export const PageActions: React.FC<{ tweet: string }> = ({ tweet }) => { return (