mirror of
https://github.com/d0zingcat/nextjs-notion-starter-kit.git
synced 2026-05-19 07:26:45 +00:00
🔒
This commit is contained in:
@@ -97,10 +97,11 @@ export const NotionPage: React.FC<types.PageProps> = ({
|
||||
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 = (
|
||||
|
||||
@@ -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 (
|
||||
<div className={styles.pageActions}>
|
||||
|
||||
Reference in New Issue
Block a user