mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-29 15:10:06 +00:00
站点信息读取Notion数据
This commit is contained in:
@@ -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>
|
||||
}
|
||||
|
||||
@@ -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'>
|
||||
|
||||
Reference in New Issue
Block a user