mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-06-08 23:16:54 +00:00
主题配置文件Notion化
This commit is contained in:
@@ -46,7 +46,7 @@ export function InfoCard(props) {
|
||||
<Link href='/about'><GlobeAlt className={'w-6 h-6'} /></Link>
|
||||
</div>
|
||||
<div className='bg-indigo-400 p-2 rounded-full w-10 items-center flex justify-center transition-colors duration-200 dark:bg-yellow-500 dark:hover:bg-black hover:bg-white'>
|
||||
<Link href={CONFIG.INFO_CARD_URL}><i className='fab fa-github text-xl' />
|
||||
<Link href={siteConfig('HEO_INFO_CARD_URL', null, CONFIG)}><i className='fab fa-github text-xl' />
|
||||
</Link>
|
||||
</div>
|
||||
</div>
|
||||
@@ -60,7 +60,7 @@ export function InfoCard(props) {
|
||||
* 欢迎语
|
||||
*/
|
||||
function GreetingsWords() {
|
||||
const greetings = CONFIG.INFOCARD_GREETINGS
|
||||
const greetings = siteConfig('HEO_INFOCARD_GREETINGS', null, CONFIG)
|
||||
const [greeting, setGreeting] = useState(greetings[0])
|
||||
// 每次点击,随机获取greetings中的一个
|
||||
const handleChangeGreeting = () => {
|
||||
|
||||
Reference in New Issue
Block a user