signin / signup

This commit is contained in:
tangly1024.com
2024-02-22 19:21:55 +08:00
parent f39f067a0a
commit 34fe8f01f3
29 changed files with 566 additions and 299 deletions

View File

@@ -34,7 +34,6 @@ import { siteConfig } from '@/lib/config'
import Live2D from '@/components/Live2D'
import BlogArchiveItem from './components/BlogArchiveItem'
import NotionIcon from '@/components/NotionIcon'
import { LAYOUT_MAPPINGS } from '@/blog.config'
import { useRouter } from 'next/router'
import { isBrowser } from '@/lib/utils'
@@ -346,21 +345,6 @@ const LayoutTagIndex = (props) => {
return <></>
}
/**
* 根据路径 获取对应的layout
* @param {*} path
* @returns
*/
const getLayoutNameByPath = (path) => {
// 检查特殊处理的路径
if (LAYOUT_MAPPINGS[path]) {
return LAYOUT_MAPPINGS[path];
} else {
// 没有特殊处理的路径返回默认layout名称
return 'LayoutSlug';
}
}
export {
CONFIG as THEME_CONFIG,
LayoutBase,
@@ -371,6 +355,5 @@ export {
Layout404,
LayoutCategoryIndex,
LayoutPostList,
LayoutTagIndex,
getLayoutNameByPath
LayoutTagIndex
}