forked from Fraud-Detection-and-Defense/datahub
-
Notifications
You must be signed in to change notification settings - Fork 1
/
theme.config.tsx
47 lines (44 loc) · 1.08 KB
/
theme.config.tsx
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
import React from 'react'
import { DocsThemeConfig } from 'nextra-theme-docs'
import { useRouter } from 'next/router';
const title = 'ODC Data Hub';
const config : DocsThemeConfig = {
logo: (
<>
<img src="/favicon.svg" width={24} height={24} />
<span style={{ marginLeft: ".4em", fontWeight: 800 }}>{title}</span>
</>
),
search: {
placeholder: "Search...",
},
project: {
link: "https://github.com/OpenDataforWeb3/data"
},
chat: {
link: "https://discord.gg/4d6CTuaD",
},
docsRepositoryBase: "https://github.com/OpenDataforWeb3/data/tree/main",
footer: {
text: "OpenData Community",
},
useNextSeoProps() {
const { route } = useRouter()
if (route !== '/') {
return {
titleTemplate: `%s – ${title}`
}
}
return {
titleTemplate: `${title}`
}
},
head: (
<>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta property="og:title" content={title} />
<meta property="og:description" content="The Data hub for ODC" />
</>
),
};
export default config