forked from taikoxyz/taiko-mono
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy paththeme.config.tsx
49 lines (48 loc) · 1.19 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
import { useRouter } from "next/router";
import { useConfig } from "nextra-theme-docs";
import Footer from "./components/Footer";
import ThemedImage from "./components/ThemedImage";
export default {
chat: {
link: "https://discord.gg/taikoxyz",
},
docsRepositoryBase:
"https://github.com/taikoxyz/taiko-mono/blob/main/packages/website",
editLink: {
text: "Edit this page on GitHub",
},
feedback: {
content: null,
},
footer: {
component: <Footer />,
},
head: () => {
const { asPath } = useRouter();
const { frontMatter } = useConfig();
return (
<>
<meta property="og:url" content={`https://taiko.xyz${asPath}`} />
<meta property="og:title" content={frontMatter.title || "Taiko"} />
<meta
property="og:description"
content={
frontMatter.description ||
"A decentralized, Ethereum-equivalent ZK-Rollup."
}
/>
<link rel="icon" href="/images/favicon.png" />
</>
);
},
logo: <ThemedImage />,
primaryHue: 315,
project: {
link: "https://github.com/taikoxyz",
},
useNextSeoProps() {
return {
titleTemplate: "%s – Taiko",
};
},
};