-
Notifications
You must be signed in to change notification settings - Fork 6
/
theme.config.tsx
76 lines (73 loc) · 2.41 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
73
74
75
76
import React from "react";
import { DocsThemeConfig, useConfig } from "nextra-theme-docs";
const config: DocsThemeConfig = {
logo: (
<span className="text-2xl font-black tracking-tight text-black dark:text-white">
🍩 Glaze
</span>
),
project: {
link: "https://github.com/dnnsjsk/glaze",
},
search: {
placeholder: "Search",
},
useNextSeoProps: () => {
const { title } = useConfig();
return {
openGraph: {
title: title === "Index" ? "Glaze" : `${title} - Glaze`,
},
};
},
docsRepositoryBase: "https://github.com/dnnsjsk/glaze/blob/main/docs",
head: function useHead() {
const { title } = useConfig();
const socialCard = "https://glaze.dev/og.jpg";
return (
<>
<link rel="preconnect" href="https://rsms.me/" />
<link rel="stylesheet" href="https://rsms.me/inter/inter.css" />
<meta name="msapplication-TileColor" content="#fff" />
<meta name="theme-color" content="#fff" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta httpEquiv="Content-Language" content="en" />
<meta
name="description"
content="The utility-based animation framework for the web."
/>
<meta
name="og:description"
content="The utility-based animation framework for the web."
/>
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:image" content={socialCard} />
<meta name="twitter:site:domain" content="glaze.dev" />
<meta name="twitter:url" content="https://glaze.dev" />
<meta name="og:image" content={socialCard} />
<meta name="apple-mobile-web-app-title" content="Glaze" />
<link rel="icon" href="/favicon.svg" type="image/svg+xml" />
<link rel="icon" href="/favicon.png" type="image/png" />
<title>{title !== "Index" ? title + " – Glaze" : "Glaze"}</title>
{process.env.NODE_ENV === "production" ? (
<script
defer
data-domain="glaze.dev"
src="https://plausible.io/js/script.js"
/>
) : null}
</>
);
},
footer: {
text: (
<p className="mx-auto text-center">
MIT License © 2024{" "}
<a href="https://dennn.is" target="_blank" className="link">
dennn.is
</a>
</p>
),
},
};
export default config;