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 (