-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
theme.config.jsx
42 lines (39 loc) · 1019 Bytes
/
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
import { useRouter } from "next/router";
import { useConfig } from "nextra-theme-docs";
export default {
logo: <span>tsmp</span>,
logoLink: "/",
project: {
link: "https://github.com/tristansmp/gateway",
},
docsRepositoryBase: "https://github.com/tristansmp/gateway/blob",
footer: {
text: <span>TristanSMP by Tristan, for the community.</span>,
},
head: () => {
const { frontMatter } = useConfig();
return (
<>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta
property="og:title"
content={
frontMatter.title ? `${frontMatter.title} - tsmp docs` : "tsmp docs"
}
/>
<meta
property="og:description"
content={frontMatter.description || "TristanSMP Documentation"}
/>
</>
);
},
useNextSeoProps() {
const { route } = useRouter();
if (route !== "/docs") {
return {
titleTemplate: "%s – tsmp",
};
}
},
};