diff --git a/themes/gitbook/components/BlogArchiveItem.js b/themes/gitbook/components/BlogArchiveItem.js
new file mode 100644
index 00000000..8e9693dc
--- /dev/null
+++ b/themes/gitbook/components/BlogArchiveItem.js
@@ -0,0 +1,36 @@
+import BLOG from '@/blog.config'
+import Link from 'next/link'
+
+/**
+ * 归档分组
+ * @param {*} param0
+ * @returns
+ */
+export default function BlogArchiveItem({ archiveTitle, archivePosts }) {
+ return (
+
+ )
+}
diff --git a/themes/gitbook/index.js b/themes/gitbook/index.js
index e5fcaeac..72056e66 100644
--- a/themes/gitbook/index.js
+++ b/themes/gitbook/index.js
@@ -31,6 +31,9 @@ import { ArticleLock } from './components/ArticleLock'
import { Transition } from '@headlessui/react'
import { Style } from './style'
import CommonHead from '@/components/CommonHead'
+import BlogArchiveItem from './components/BlogArchiveItem'
+import BlogPostListPage from './components/BlogPostListPage'
+import Link from 'next/link'
// 主题全局变量
const ThemeGlobalGitbook = createContext()
@@ -194,7 +197,9 @@ const LayoutIndex = (props) => {
* @returns
*/
const LayoutPostList = (props) => {
- return
+ return
+
+
}
/**
@@ -253,13 +258,19 @@ const LayoutSearch = (props) => {
}
/**
- * 没有归档
+ * 归档页面基本不会用到
* 全靠页面导航
* @param {*} props
* @returns
*/
const LayoutArchive = (props) => {
- return
+ const { archivePosts } = props
+
+ return
+
+ {Object.keys(archivePosts)?.map(archiveTitle => )}
+
+
}
/**
@@ -275,14 +286,57 @@ const Layout404 = props => {
* 分类列表
*/
const LayoutCategoryIndex = (props) => {
- return
+ const { categoryOptions } = props
+ const { locale } = useGlobal()
+ return
+
+
+ {locale.COMMON.CATEGORY}:
+
+
+ {categoryOptions?.map(category => {
+ return (
+
+
+ {category.name}({category.count})
+
+
+ )
+ })}
+
+
+
}
/**
* 标签列表
*/
const LayoutTagIndex = (props) => {
- return
+ const { tagOptions } = props
+ const { locale } = useGlobal()
+
+ return
+
+
+
+ {locale.COMMON.TAGS}:
+
+
+
+
}
export {