-
Notifications
You must be signed in to change notification settings - Fork 4
/
theme.config.jsx
52 lines (50 loc) · 1.16 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
import { useRouter } from 'next/router';
/** @type {import('nextra-theme-docs').DocsThemeConfig} */
const config = {
logo: <span>FZU Wiki</span>,
project: {
link: 'https://github.com/west2-online/fzu-wiki',
},
docsRepositoryBase: 'https://github.com/west2-online/fzu-wiki/tree/main',
useNextSeoProps() {
const { asPath } = useRouter();
if (asPath !== '/') {
return {
titleTemplate: '%s - FZU Wiki',
};
}
},
footer: {
text: (
<div style={{ width: '100%' }}>
Built with ❤️ by FZUers.
<br />
© {new Date().getFullYear()} west2-online. All rights reserved.
<small style={{ float: 'right' }}>
Powered by{' '}
<a
href="https://nextra.site"
target="_blank"
rel="noopener noreferrer nofollow"
>
Nextra
</a>
</small>
</div>
),
},
editLink: {
text: '在 GitHub 上编辑此页',
},
feedback: {
content: '有疑问?马上反馈',
labels: 'feedback',
},
toc: {
title: '目录',
},
search: {
placeholder: '搜索...',
},
};
export default config;