编译问题

This commit is contained in:
tangly1024
2022-03-30 16:01:51 +08:00
parent 263493f61a
commit 87e3f09875
3 changed files with 3 additions and 3 deletions

View File

@@ -4,7 +4,7 @@ const Logo = props => {
const { siteInfo } = props
return <section className='flex'>
<Link href='/'>
<a className='hover:bg-black hover:text-white border-black border-2 duration-500 px-4 py-2 cursor-pointer dark:text-gray-300 dark:border-gray-300 font-black'>{siteInfo.title}</a>
<a className='hover:bg-black hover:text-white border-black border-2 duration-500 px-4 py-2 cursor-pointer dark:text-gray-300 dark:border-gray-300 font-black'>{siteInfo?.title}</a>
</Link>
</section>
}

View File

@@ -5,7 +5,7 @@ const Logo = props => {
const { siteInfo } = props
return <Link href='/' passHref>
<div className='flex flex-col justify-center items-center cursor-pointer space-y-3'>
<div className='font-sans text-lg p-1.5 rounded bg-black text-white dark:border-white border-black border'> {siteInfo.title}</div>
<div className='font-sans text-lg p-1.5 rounded bg-black text-white dark:border-white border-black border'> {siteInfo?.title}</div>
</div>
</Link>
}

View File

@@ -4,7 +4,7 @@ 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'>{siteInfo.title}</a>
<a className='text-md md:text-xl dark:text-gray-200'>{siteInfo?.title}</a>
</Link>
</div>
}