-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy paththeme.config.tsx
72 lines (67 loc) · 2.02 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
72
import { DocsThemeConfig, useConfig } from "nextra-theme-docs";
const config: DocsThemeConfig = {
logo: (
<div style={{ display: "flex", alignItems: "center" }}>
<img
src="/kirimase_logo.png"
width="24px"
style={{ marginRight: ".5rem", borderRadius: "4px" }}
/>
<span style={{ fontSize: "1.4rem", fontWeight: "700" }}>Kirimase</span>
</div>
),
project: {
link: "https://github.com/nicoalbanese/kirimase",
},
chat: {
link: "https://discord.gg/Bzb8mSDB8D",
},
docsRepositoryBase: "https://github.com/nicoalbanese/kirimase-docs",
footer: {
text: "Kirimase Documentation - 2023",
},
primaryHue: 124,
primarySaturation: 28,
useNextSeoProps() {
return {
titleTemplate: "%s – Kirimase",
};
},
head: () => {
const { frontMatter, title } = useConfig();
const ogTitle = title ? `${title} – Kirimase` : "No title";
const ogDescription = frontMatter.description;
return (
<>
{/* Favicons, meta */}
<link
rel="apple-touch-icon"
sizes="180x180"
href="/favicon/apple-touch-icon.png"
/>
<link
rel="icon"
type="image/png"
sizes="32x32"
href="/favicon/favicon-32x32.png"
/>
<link
rel="icon"
type="image/png"
sizes="16x16"
href="/favicon/favicon-16x16.png"
/>
<link rel="icon" type="image/svg+xml" href="/favicon/favicon.svg" />
<link rel="manifest" href="/favicon/site.webmanifest" />
<meta name="msapplication-TileColor" content="#ffffff" />
<meta name="apple-mobile-web-app-title" content="SWR" />
<meta name="description" content={ogDescription} />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:site" content="@vercel" />
<meta property="og:title" content={ogTitle} />
<meta property="og:description" content={ogDescription} />
</>
);
},
};
export default config;