-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy paththeme.config.jsx
82 lines (81 loc) · 2.14 KB
/
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
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
import { useConfig } from "nextra-theme-docs";
export default {
logo: <img src="/logo.png" style={{ height: 48 }} />,
project: {
link: "https://github.com/vlcn-io/cr-sqlite",
},
darkMode: false,
nextThemes: {
defaultTheme: "light",
forcedTheme: "light",
},
chat: {
link: "https://discord.gg/AtdVY6zDW3",
},
docsRepositoryBase: "https://github.com/vlcn-io/docs/tree/main",
footer: {
text: (
<span>
MIT {new Date().getFullYear()} ©{" "}
<a href="https://vlcn.io" target="_blank">
One Law LLC
</a>
</span>
),
},
head: () => {
const { frontMatter } = useConfig();
return (
<>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta
name="keywords"
content="software, crdts, crrs, sqlite, conflict-free"
/>
<meta
name="twitter:image"
content={frontMatter.image || "https://vlcn.io/assets/hero.png"}
></meta>
<meta name="copyright" content="© 2022 One Law LLC" />
</>
);
},
useNextSeoProps() {
const { frontMatter } = useConfig();
return {
additionalLinkTags: [
{
href: "/favicon-32x32.png",
rel: "icon",
sizes: "32x32",
type: "image/png",
},
{
href: "/favicon-16x16.png",
rel: "icon",
sizes: "16x16",
type: "image/png",
},
],
additionalMetaTags: [
{ content: "en", httpEquiv: "Content-Language" },
{ content: "vlcn.io", name: "apple-mobile-web-app-title" },
{ content: "#fff", name: "msapplication-TileColor" },
],
description: frontMatter.description || "Distributed State, Simplified",
openGraph: {
description: frontMatter.description || "Distributed State, Simplified",
siteName: "vlcn.io",
images: [
{ url: frontMatter.image || "https://vlcn.io/assets/hero.png" },
],
},
titleTemplate: "%s – vlcn.io",
twitter: {
cardType: "summary_large_image",
site: "@vlcnio",
},
};
},
// ...
};