mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-14 07:26:52 +00:00
hexo 主题一闪而过的title
This commit is contained in:
@@ -66,7 +66,7 @@ const Hero = props => {
|
||||
<div className='text-white absolute bottom-0 flex flex-col h-full items-center justify-center w-full '>
|
||||
{/* 站点标题 */}
|
||||
<div className='font-black text-4xl md:text-5xl shadow-text'>
|
||||
{siteConfig('TITLE')}
|
||||
{siteInfo?.title || siteConfig('TITLE')}
|
||||
</div>
|
||||
{/* 站点欢迎语 */}
|
||||
<div className='mt-2 h-12 items-center text-center font-medium shadow-text text-lg'>
|
||||
|
||||
@@ -1,11 +1,20 @@
|
||||
import { siteConfig } from '@/lib/config'
|
||||
import Link from 'next/link'
|
||||
|
||||
/**
|
||||
* Logo
|
||||
* 实际值支持文字
|
||||
* @param {*} props
|
||||
* @returns
|
||||
*/
|
||||
const Logo = props => {
|
||||
const { siteInfo } = props
|
||||
return (
|
||||
<Link href='/' passHref legacyBehavior>
|
||||
<div className='flex flex-col justify-center items-center cursor-pointer space-y-3'>
|
||||
<div className='font-medium text-lg p-1.5 rounded dark:border-white dark:text-white menu-link transform duration-200'> {siteConfig('TITLE') }</div>
|
||||
<div className='font-medium text-lg p-1.5 rounded dark:border-white dark:text-white menu-link transform duration-200'>
|
||||
{' '}
|
||||
{siteInfo?.title || siteConfig('TITLE')}
|
||||
</div>
|
||||
</div>
|
||||
</Link>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user