-
Notifications
You must be signed in to change notification settings - Fork 25
/
theme.config.tsx
76 lines (68 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 Image from "next/image";
import { useRouter } from "next/router";
import { DocsThemeConfig, useConfig } from "nextra-theme-docs";
const themeConfig: DocsThemeConfig = {
head: () => {
const router = useRouter();
const { title, ...rest } = useConfig();
const pagePath = router.asPath;
const ogImageUrl = `https://docs.postiz.com/api/opengraph-image?title=${title}`;
const ogTitle = `${title} - Postiz Docs`;
return (
<>
<title>{ogTitle}</title>
<meta name="viewport" content="width=device-width" />
<meta name="application-name" content="Postiz" />
<meta name="msapplication-TileColor" content="#4f46e5" />
<meta name="theme-color" content="#ffffff" />
<meta name="charset" content="utf-8" />
<meta
property="description"
content="Postiz - Open source social media scheduling tool"
/>
<link rel="sitemap" type="application/xml" href="/sitemap.xml" />
<link rel="icon" href="/favicon.ico" />
<link rel="canonical" href={pagePath} />
<meta
property="og:description"
content="Postiz - Open source social media scheduling tool"
/>
<meta property="og:site_name" content="Postiz Documentation" />
<meta name="og:url" content={`https://docs.postiz.com/${pagePath}`} />
<meta name="og:title" content={ogTitle} />
<meta name="og:image" content={ogImageUrl} />
<meta name="og:type" content="website" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content={ogTitle} />
<meta name="twitter:description" content="Postiz Documentation" />
<meta name="twitter:image" content={ogImageUrl} />
</>
);
},
logo: (
<div className="nx-flex nx-items-center nx-gap-2">
<Image src="/logo/dark.png" alt="Postiz" height={34} width={130} />
<span className="nx-font-semibold nx-text-white">Docs</span>
</div>
),
project: {
link: "https://github.com/gitroomhq/postiz-app",
},
chat: {
link: "https://discord.postiz.com",
},
docsRepositoryBase: "https://github.com/gitroomhq/postiz-docs/blob/main",
footer: {
content: "Gitroom Limited. All rights reserved.",
},
darkMode: false,
nextThemes: {
defaultTheme: "dark",
forcedTheme: "dark",
},
color: {
hue: 280,
saturation: 100,
}
};
export default themeConfig;