站点信息读取Notion数据

This commit is contained in:
tangly1024
2022-03-30 15:34:25 +08:00
parent 914e9a108f
commit 53c004843e
61 changed files with 322 additions and 463 deletions

View File

@@ -1,10 +1,10 @@
import BLOG from '@/blog.config'
import Link from 'next/link'
export default function LogoBar () {
export default function LogoBar (props) {
const { siteInfo } = props
return <div id='top-wrapper' className='w-full flex items-center font-sans'>
<Link href='/'>
<a className='text-md md:text-xl dark:text-gray-200'>{BLOG.TITLE}</a>
<a className='text-md md:text-xl dark:text-gray-200'>{siteInfo.title}</a>
</Link>
</div>
}

View File

@@ -13,7 +13,7 @@ export default function TopNavBar (props) {
return <div id='top-nav' className={'sticky top-0 lg:relative w-full z-40 ' + className}>
<div className='flex w-full h-12 shadow bg-white dark:bg-gray-900 px-5 items-between'>
<LogoBar />
<LogoBar {...props}/>
{/* 顶部菜单 */}
<div className='flex'>