diff --git a/themes/matery/components/SearchNav.js b/themes/matery/components/SearchNav.js
index 0c992ebf..fb13f6ae 100644
--- a/themes/matery/components/SearchNav.js
+++ b/themes/matery/components/SearchNav.js
@@ -1,7 +1,7 @@
-import SearchInput from './components/SearchInput'
-import TagItemMini from './components/TagItemMini'
-import Card from './components/Card'
+import SearchInput from './SearchInput'
+import TagItemMini from './TagItemMini'
+import Card from './Card'
import Link from 'next/link'
import { useEffect, useRef } from 'react'
import { useGlobal } from '@/lib/global'
diff --git a/themes/matery/index.js b/themes/matery/index.js
index 1537b68c..710d8642 100644
--- a/themes/matery/index.js
+++ b/themes/matery/index.js
@@ -101,8 +101,7 @@ const LayoutIndex = (props) => {
*/
const LayoutPostList = (props) => {
return (
-
-
+ }>
{BLOG.POST_LIST_STYLE === 'page' ? : }
)
diff --git a/themes/medium/LayoutSlug.js b/themes/medium/LayoutSlug.js
deleted file mode 100644
index 39b4103e..00000000
--- a/themes/medium/LayoutSlug.js
+++ /dev/null
@@ -1,96 +0,0 @@
-import LayoutBase from './LayoutBase'
-import { useGlobal } from '@/lib/global'
-import React from 'react'
-import Catalog from './components/Catalog'
-import { ArticleLock } from './components/ArticleLock'
-import formatDate from '@/lib/formatDate'
-import BLOG from '@/blog.config'
-import Link from 'next/link'
-import NotionPage from '@/components/NotionPage'
-import CONFIG_MEDIUM from './config_medium'
-import Comment from '@/components/Comment'
-import ArticleAround from './components/ArticleAround'
-import TocDrawer from './components/TocDrawer'
-import CategoryItem from './components/CategoryItem'
-import TagItemMini from './components/TagItemMini'
-import ShareBar from '@/components/ShareBar'
-
-export const LayoutSlug = props => {
- const { post, prev, next, siteInfo, lock, validPassword } = props
- const { locale } = useGlobal()
-
- const date = formatDate(
- post?.publishTime || post?.createdTime,
- locale.LOCALE
- )
- if (!post) {
- return
- }
-
- const slotRight = post?.toc && post?.toc?.length >= 3 && (
-
-
- {/* */}
-
- )
-
- return (
-
- {/* 文章锁 */}
- {lock && }
-
- {!lock &&
-
- {/* title */}
-
{post?.title}
-
- {/* meta */}
-
-
-
{date}
-
|
-
{post.lastEditedTime}
-
-
-
-
-
-
- {/* eslint-disable-next-line @next/next/no-img-element */}
-

-
-
- {BLOG.AUTHOR}
-
-
-
-
-
- {/* Notion文章主体 */}
-
-
-
-
- {/* 分享 */}
-
- {/* 文章分类和标签信息 */}
-
- {CONFIG_MEDIUM.POST_DETAIL_CATEGORY && post.category &&
}
-
- {CONFIG_MEDIUM.POST_DETAIL_TAG && post?.tagItems?.map(tag => )}
-
-
-
- {post.type === 'Post' && }
-
-
-
-
-
}
-
- )
-}
-
-export default LayoutSlug
diff --git a/themes/medium/components/BottomMenuBar.js b/themes/medium/components/BottomMenuBar.js
index 45215f50..808b74eb 100644
--- a/themes/medium/components/BottomMenuBar.js
+++ b/themes/medium/components/BottomMenuBar.js
@@ -1,6 +1,6 @@
import Link from 'next/link'
import React from 'react'
-import { useMediumGlobal } from '../LayoutBase'
+import { useMediumGlobal } from '@/themes/medium'
import JumpToTopButton from './JumpToTopButton'
export default function BottomMenuBar ({ post, className }) {
diff --git a/themes/medium/components/TocDrawer.js b/themes/medium/components/TocDrawer.js
index 9a9270db..0df5cb56 100644
--- a/themes/medium/components/TocDrawer.js
+++ b/themes/medium/components/TocDrawer.js
@@ -1,5 +1,5 @@
import Catalog from './Catalog'
-import { useMediumGlobal } from '../LayoutBase'
+import { useMediumGlobal } from '@/themes/medium'
/**
* 悬浮抽屉目录
diff --git a/themes/medium/index.js b/themes/medium/index.js
index c488ca32..55e4e805 100644
--- a/themes/medium/index.js
+++ b/themes/medium/index.js
@@ -313,6 +313,7 @@ const LayoutTagIndex = props => {
export {
CONFIG_MEDIUM as THEME_CONFIG,
LayoutIndex,
+ LayoutPostList,
LayoutSearch,
LayoutArchive,
LayoutSlug,