部分配置siteConfig化

This commit is contained in:
tangly1024.com
2023-11-01 18:40:00 +08:00
parent 70f6413fb2
commit 52495e0200
80 changed files with 293 additions and 200 deletions

View File

@@ -1,4 +1,5 @@
import BLOG from '@/blog.config'
import { siteConfig } from '@/lib/config'
/**
* 标题栏
@@ -6,9 +7,9 @@ import BLOG from '@/blog.config'
* @returns
*/
export const Title = (props) => {
const { siteInfo, post } = props
const title = post?.title || siteInfo?.description
const description = post?.description || BLOG.AUTHOR
const { post } = props
const title = post?.title || siteConfig('HOME_BANNER_IMAGE')
const description = post?.description || siteConfig('AUTHOR')
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">{title}</h1>