主题支持title icon

This commit is contained in:
tangly1024.com
2024-02-05 18:02:56 +08:00
parent a45320d1af
commit 77a367d175
3 changed files with 3 additions and 4 deletions

View File

@@ -10,7 +10,6 @@ export const Title = (props) => {
const { post } = props
const title = post?.title || siteConfig('TITLE')
const description = post?.description || siteConfig('AUTHOR')
console.log('post', post)
return <div className="text-center px-6 py-12 mb-6 bg-gray-100 dark:bg-hexo-black-gray dark:border-hexo-black-gray border-b">
<h1 className="text-xl md:text-4xl pb-4"><NotionIcon icon={post?.pageIcon} />{title}</h1>