-
+ {showInfoCard && }
{children}
diff --git a/themes/Medium/LayoutSlug.js b/themes/Medium/LayoutSlug.js
index cb621b12..cd2a349d 100644
--- a/themes/Medium/LayoutSlug.js
+++ b/themes/Medium/LayoutSlug.js
@@ -9,6 +9,10 @@ import 'prismjs/components/prism-typescript'
import { Code, Collection, CollectionRow, Equation, NotionRenderer } from 'react-notion-x'
import LayoutBase from './LayoutBase'
import Comment from '@/components/Comment'
+import Image from 'next/image'
+import { useGlobal } from '@/lib/global'
+import formatDate from '@/lib/formatDate'
+import Link from 'next/link'
const mapPageUrl = id => {
return 'https://www.notion.so/' + id.replace(/-/g, '')
@@ -27,9 +31,25 @@ export const LayoutSlug = (props) => {
post.content = Object.keys(post.blockMap.block)
post.toc = getPageTableOfContents(post, post.blockMap)
}
+ const { locale } = useGlobal()
+ const date = formatDate(post?.date?.start_date || post.createdTime, locale.LOCALE)
- return
-
+
{post.blockMap && (
{post?.title}
+ return{post?.title}
+ +
+
+
+
{/* Notion文章主体 */}
{BLOG.AUTHOR}
+ {date}
+