-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
theme.config.jsx
57 lines (56 loc) · 2.19 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
import React from 'react'
import { useRouter } from "next/router"
import { useConfig } from "nextra-theme-docs"
import { DocsThemeConfig } from "nextra-theme-docs"
export default {
logo: (<><img src="/favicon.png" width="200px" /></>),
head: () => {
const { asPath } = useRouter()
const { frontMatter, title } = useConfig()
return <>
<meta property="og:url" content={`https://knowledge.clckblog.space${asPath}`} />
<meta property="og:description" content={frontMatter.description || '由 @CLCK 及其他人一起整理的,以上海市 2025 届高中课标教材为蓝本的高中课本知识库。'} />
</>
},
project: {
link: 'https://github.com/CLCK0622/Shanghai-High-School-Knowledge',
},
// chat: {
// link: 'https://discord.com',
// },
docsRepositoryBase: 'https://github.com/CLCK0622/Shanghai-High-School-Knowledge/tree/main',
footer: {
// text: '由 Kevin Zhong (aka CLCK) 和其他贡献者精心整理 | 自豪地使用 Nextra 生成网站',
text: <div><p>由 Kevin Zhong (aka CLCK) 和其他贡献者精心整理 | 自豪地使用 <img src="/nextraIcon.svg" id='icon' style={{ display: 'inline', height: "16px" }} /> 生成网站</p><br /><p><span>Powered by </span><img src='/vercelIcon.svg' id='icon' style={{ display: 'inline', height: "16px" }} /></p></div>
},
search: {
emptyResult: <div className="nx-mt-4 nx-flex nx-justify-center nx-items-center nx-text-gray-500 nx-font-semibold nx-text-s nx-select-none">没有结果</div>,
loading: '加载中...',
placeholder: '搜索',
},
sidebar: {
defaultMenuCollapseLevel: 1,
toggleButton: true,
},
toc: {
title: "目录",
},
editLink: {
text: '编辑本页面 ↗',
},
feedback: {
content: '有问题?前往反馈 ↗',
},
useNextSeoProps() {
const { route } = useRouter()
if (route !== '/') {
return {
titleTemplate: '%s - 上海高中课本知识整理'
}
} else {
return {
titleTemplate: '上海高中课本知识整理'
}
}
},
}