mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-14 07:26:52 +00:00
Merge pull request #1917 from tangly1024/fix/little-change
Fix/little change
This commit is contained in:
@@ -39,7 +39,7 @@ module.exports = {
|
||||
'black-gray': '#101414',
|
||||
'light-gray': '#e5e5e5'
|
||||
},
|
||||
black: '#212b36',
|
||||
// black: '#212b36',
|
||||
'dark-700': '#090e34b3',
|
||||
dark: {
|
||||
DEFAULT: '#111928',
|
||||
|
||||
@@ -54,7 +54,7 @@ const LayoutBase = (props) => {
|
||||
loadWowJS()
|
||||
}, [])
|
||||
|
||||
return <div id='theme-starter' className={`${siteConfig('FONT_STYLE')} min-h-screen flex flex-col dark:bg-black scroll-smooth`}>
|
||||
return <div id='theme-starter' className={`${siteConfig('FONT_STYLE')} min-h-screen flex flex-col dark:bg-[#212b36] scroll-smooth`}>
|
||||
<Style/>
|
||||
<NavBar {...props}/>
|
||||
|
||||
@@ -110,15 +110,16 @@ const LayoutIndex = (props) => {
|
||||
* @returns
|
||||
*/
|
||||
const LayoutSlug = (props) => {
|
||||
// 如果 是 /article/[slug] 的文章路径则进行重定向到另一个域名
|
||||
const { post } = props
|
||||
|
||||
// 如果 是 /article/[slug] 的文章路径则視情況进行重定向到另一个域名
|
||||
const router = useRouter()
|
||||
if (siteConfig('STARTER_POST_REDIRECT_ENABLE', null, CONFIG) && isBrowser && router.route === '/[prefix]/[slug]') {
|
||||
if (!post && siteConfig('STARTER_POST_REDIRECT_ENABLE', null, CONFIG) && isBrowser && router.route === '/[prefix]/[slug]') {
|
||||
const redirectUrl = siteConfig('STARTER_POST_REDIRECT_URL', null, CONFIG) + router.asPath.replace('?theme=landing', '')
|
||||
router.push(redirectUrl)
|
||||
return <div id='theme-starter'><Loading /></div>
|
||||
}
|
||||
|
||||
const { post } = props
|
||||
return <>
|
||||
<Banner title={post?.title} description={post?.summary}/>
|
||||
<div className="container grow">
|
||||
|
||||
Reference in New Issue
Block a user