-
Notifications
You must be signed in to change notification settings - Fork 0
/
theme.config.jsx
91 lines (84 loc) · 2.02 KB
/
theme.config.jsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
import Image from "next/image";
const Placeholder = () => {
return "搜索";
};
const Feedback = () => {
return "反馈问题↗";
};
const EditLink = ({ filePath, className }) => {
return (
<a
href={`https://github.com/qinjiangban/qinjiangban-site/tree/main/${filePath}`}
className={className}
target='_blank'>
编辑此页↗
</a>
);
};
const GitTimestamp = ({ timestamp }) => {
return <>更新时间:{timestamp.toLocaleString()}</>;
};
export default {
//搜索引擎优化选项
useNextSeoProps() {
return {
titleTemplate: "%s - JiangBan Site",
};
},
head: (
<>
<link rel='icon' href='/favicon.ico' type='/favicon.ico' />
</>
),
logo: <Image src='/favicon.ico' width={40} height={40} alt='logo' style={{borderRadius:'50%'}}/>,
search: { placeholder: Placeholder },
/* project: {
link: "https://github.com/qinjiangban",
},
chat: {
link: "https://twitter.com/qinjiangban",
icon: (
<FaSquareXTwitter
alt="Xlogo"
style={{ width: "27.5px", height: "27.5px" }}
/>
),
}, */
//自定义导航栏
navbar: {
extraContent: < ></>,
},
//指向文档存储库的链接字符串
docsRepositoryBase: "https://github.com/qinjiangban/qinjiangban-site",
//侧边栏
sidebar: {
defaultMenuCollapseLevel: 1, //指定默认情况下折叠左侧菜单的文件夹级别。
autoCollapse: false, //自动折叠非活动文件夹
toggleButton: false, //侧边栏隐藏按钮
},
//目录侧边栏
toc: {
title: "页面目录", //标题
//backToTop: true //添加“滚动到顶部”链接
},
//反馈链接
feedback: { content: Feedback },
//编辑链接
editLink: { component: EditLink },
//呈现上次更新日期的函数
gitTimestamp: GitTimestamp,
//主题切换
darkMode:false,
themeSwitch: {
component:false,
/* useOptions() {
return {
light: 'Light',
dark: 'Dark',
system: 'System'
}
} */
},
//页脚
footer: {},
};