-
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy paththeme.config.js
More file actions
129 lines (127 loc) · 4.14 KB
/
theme.config.js
File metadata and controls
129 lines (127 loc) · 4.14 KB
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
import { useRouter } from 'next/router'
import { useConfig } from 'nextra-theme-docs'
export default {
project: {
link: 'https://github.com/InfinityBotList',
},
chat: {
link: 'https://infinitybots.gg/redirect/discord'
},
navigation: {
prev: true,
next: true
},
docsRepositoryBase:
'https://github.com/InfinityBotList/Documentation',
editLink: {
text: 'Edit this page on GitHub'
},
head: () => {
const { asPath } = useRouter();
const { frontMatter } = useConfig()
return <>
<meta name="msapplication-TileColor" content="#7289DA" />
<meta name="theme-color" content="#7289DA" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta httpEquiv="Content-Language" content="en" />
<meta
name="description"
content="Documentation for Infinity Bot List"
/>
<meta
name="og:description"
content="Documentation for Infinity Bot List"
/>
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:image" content="/85FC9DAF-60F4-4839-8BB8-31DAA7BE3303.png" />
<meta name="twitter:site:domain" content="docs.infinitybots.gg" />
<meta name="twitter:url" content="https://docs.infinitybots.gg" />
<meta name="og:title" content="Infinity Bots | Documentation" />
<meta name="og:image" content="/infinity.png" />
<meta name="apple-mobile-web-app-title" content="Infinity Docs" />
<link rel="apple-touch-icon" sizes="180x180" href="/infinity.png" />
<link rel="icon" type="image/png" sizes="192x192" href="/infinity.png" />
<link rel="icon" type="image/png" sizes="32x32" href="/infinity.png" />
<link rel="icon" type="image/png" sizes="96x96" href="/infinity.png" />
<link rel="icon" type="image/png" sizes="16x16" href="/infinity.png" />
<meta name="msapplication-TileImage" content="/infinity.png" />
</>
},
logo: (
<>
<img
className="md:inline object-contain hidden"
style={{ height: '2em' }}
src="/infinity.png"
/>
<span style={{ marginLeft: '.4em', fontWeight: 800 }}>
Infinity
</span>
<span style={{ marginLeft: '.4em', fontWeight: 800, color: '#8A6AFD' }}>
Docs
</span>
<span className="ml-2 py-0 px-1 font-mono text-xs no-underline w-full text-gray-600 bg-black border border-transparent border-gray-200 rounded-md bg-opacity-5 dark:bg-white dark:text-white dark:border-gray-700 dark:bg-opacity-5">
v6.0.0
</span>
</>
),
footer: {
text: <span>
© {new Date().getFullYear()} <a href="https://infinitydev.team" target="_blank">Infinity Development LLC</a>.
</span>,
},
useNextSeoProps() {
const { frontMatter } = useConfig({})
return {
additionalLinkTags: [
{
href: '/infinity.png',
rel: 'apple-touch-icon',
sizes: '180x180'
},
{
href: '/infinity.png',
rel: 'icon',
sizes: '192x192',
type: 'image/png'
},
{
href: '/infinity.png',
rel: 'icon',
sizes: '96x96',
type: 'image/png'
},
{
href: '/infinity.png',
rel: 'icon',
sizes: '32x32',
type: 'image/png'
},
{
href: '/infinity.png',
rel: 'icon',
sizes: '16x16',
type: 'image/png'
}
],
additionalMetaTags: [
{ content: 'en', httpEquiv: 'Content-Language' },
{ content: 'Infinity Docs', name: 'apple-mobile-web-app-title' },
{ content: '#7289DA', name: 'msapplication-TileColor' },
{ content: '/infinity.png', name: 'msapplication-TileImage' }
],
description:
frontMatter.description || 'Documentation for Infinity Bot List',
openGraph: {
images: [
{ url: frontMatter.image || 'https://docs.botlist.site/85FC9DAF-60F4-4839-8BB8-31DAA7BE3303.png' }
]
},
titleTemplate: '%s – Infinity Docs',
twitter: {
cardType: 'summary_large_image',
site: 'https://docs.botlist.site',
}
}
},
}