-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy paththeme.config.tsx
71 lines (67 loc) · 2.33 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
import { useRouter } from 'next/router'
import Footer from './components/Footer'
import HelpDocsCTA from './components/HelpDocsCTA'
import NavBar, { ExtraContent } from './components/NavBar'
import WikiLogo from './components/WikiLogo'
export const GITHUB_REPO = 'https://github.com/Kareadita/Wiki-Nextra'
const DOCS_PAGES_HREF = `${GITHUB_REPO}/tree/main/pages`
export default {
banner: {
key: '0.8.3',
content: (
<a href="https://github.com/Kareadita/Kavita/releases/latest" target="_blank">
🎉 Kavita v0.8.4 is released. Read more →
</a>
)
},
chat: {
link: 'https://discord.gg/b52wT37kt7',
},
docsRepositoryBase: DOCS_PAGES_HREF,
editLink: {
component: HelpDocsCTA,
},
feedback: {
content: null,
},
footer: {
component: Footer,
},
head: ({ title, meta, route }) => {
const isHome = route === '/';
const dynamicTitle = isHome ? 'Kavita Wiki' : `Kavita Wiki${title ? (' | ' + title) : ''}`;
return (
<>
<title>{dynamicTitle}</title>
<meta name="viewport" content="width=device-width" />
<meta charSet="utf-8" />
<meta name="robots" content="index,follow" />
<meta name="description" content="Lightning fast with a slick design, Kavita is a rocket fueled self-hosted digital library which supports a vast array of file formats." />
<meta property="og:title" content={dynamicTitle} />
<meta property="og:description" content="Lightning fast with a slick design, Kavita is a rocket fueled self-hosted digital library which supports a vast array of file formats." />
<meta property="og:url" content="https://wiki.kavitareader.com/" />
<meta property="og:type" content="website" />
<meta property="og:image" content="https://raw.githubusercontent.com/Kareadita/Wiki-Nextra/main/public/homepage-dark3.png" />
<meta property="og:image:alt" content="Kavita Wiki" />
<meta property="og:image:type" content="image/webp" />
<meta property="og:image:width" content="1332" />
<meta property="og:image:height" content="699" />
<meta property="og:locale" content="en_US" />
<meta property="og:site_name" content="Kavita Wiki" />
<link rel="icon" href="/favicon.ico" />
</>
);
},
logo: <WikiLogo />,
navbar: {
component: NavBar,
extraContent: ExtraContent,
},
color: {
hue: { dark: 133, light: 133 },
saturation: 100
},
project: {
link: 'https://github.com/Kareadita/Kavita',
},
}