forked from discrete-math-ch/discmath
-
Notifications
You must be signed in to change notification settings - Fork 0
/
theme.config.jsx
87 lines (84 loc) · 2.77 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
import { useRouter } from 'next/router'
import { useConfig } from 'nextra-theme-docs'
import { DocsThemeConfig } from 'nextra-theme-docs'
export default {
docsRepositoryBase: 'https://github.com/discrete-math-ch/discmath',
logo: <p>discmath.ch</p>,
project: {
link: 'https://github.com/discrete-math-ch/discmath'
},
useNextSeoProps() {
const { asPath } = useRouter()
if (asPath !== '/') {
return {
titleTemplate: '%s – DiscMath'
}
}
},
head: function useHead() {
const { title } = useConfig()
const { route } = useRouter()
return (
<>
<meta name="msapplication-TileColor" content="#fff" />
<meta name="theme-color" content="#fff" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta httpEquiv="Content-Language" content="en" />
<meta
name="description"
content="Discrete Mathematics"
/>
<meta
name="og:description"
content="Discrete Mathematics"
/>
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:image" content="" />
<meta name="twitter:site:domain" content="discmath" />
<meta name="twitter:url" content="discmath" />
<meta
name="og:title"
content={title ? title + ' – discmath' : 'discmath'}
/>
<meta name="og:image" content="" />
<meta name="apple-mobile-web-app-title" content="discmath" />
<link rel="icon" href="/favicon.svg" type="image/svg+xml" />
<link rel="icon" href="/favicon.png" type="image/png" />
<link
rel="icon"
href="/favicon-dark.svg"
type="image/svg+xml"
media="(prefers-color-scheme: dark)"
/>
<link
rel="icon"
href="/favicon-dark.png"
type="image/png"
media="(prefers-color-scheme: dark)"
/>
</>
)
},
//gitTimestamp: <LastCommitAuthor/>,
editLink: {
text: 'Edit this page on GitHub →'
},
feedback: {
content: 'Question? Give us feedback →',
labels: 'feedback'
},
primaryHue: {dark: 80, light:80 },
search: {
placeholder: "Search..."
},
primarySaturation: {dark: 100, light:100},
footer: {
text: (
<div className="flex w-full flex-col items-center sm:items-start">
<p className="mt-6 text-xs">
© {new Date().getFullYear()} some student TAs
</p>
</div>
)
},
}