mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-17 23:16:50 +00:00
部分配置siteConfig化
This commit is contained in:
@@ -1,12 +1,11 @@
|
||||
import Link from 'next/link'
|
||||
import { siteConfig } from '@/lib/config'
|
||||
|
||||
/**
|
||||
* 网站顶部
|
||||
* @returns
|
||||
*/
|
||||
export const Header = (props) => {
|
||||
const { siteInfo } = props
|
||||
|
||||
return (
|
||||
<header className="w-full px-6 bg-white dark:bg-black relative z-10">
|
||||
<div className="container mx-auto max-w-4xl md:flex justify-between items-center">
|
||||
@@ -14,7 +13,7 @@ export const Header = (props) => {
|
||||
href='/'
|
||||
className="py-6 w-full text-center md:text-left md:w-auto text-gray-dark no-underline flex justify-center items-center">
|
||||
|
||||
{siteInfo?.title}
|
||||
{siteConfig('TITLE')}
|
||||
</Link>
|
||||
<div className="w-full md:w-auto text-center md:text-right">
|
||||
{/* 右侧文字 */}
|
||||
|
||||
Reference in New Issue
Block a user