主题配置文件Notion化

This commit is contained in:
tangly1024.com
2023-11-07 14:52:21 +08:00
parent e084053098
commit f2e2ae8d5f
118 changed files with 570 additions and 528 deletions

View File

@@ -1,14 +1,15 @@
import CONFIG from '../config'
import { siteConfig } from '@/lib/config'
/**
* 网站顶部 提示栏
* @returns
*/
export const TopBar = (props) => {
if (CONFIG.TOP_BAR_CONTENT) {
if (siteConfig('SIMPLE_TOP_BAR_CONTENT', null, CONFIG)) {
return <header className="flex justify-center items-center bg-black dark:bg-hexo-black-gray">
<div id='top-bar-inner' className='max-w-9/10 w-full z-20'>
<div className='text-xs text-center float-left text-white z-50 leading-5 py-2.5' dangerouslySetInnerHTML={{ __html: CONFIG.TOP_BAR_CONTENT }}/>
<div className='text-xs text-center float-left text-white z-50 leading-5 py-2.5' dangerouslySetInnerHTML={{ __html: siteConfig('SIMPLE_TOP_BAR_CONTENT', null, CONFIG) }}/>
</div>
</header>
}