-
Notifications
You must be signed in to change notification settings - Fork 1
/
theme.config.tsx
144 lines (131 loc) · 4.15 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
import type { DocsThemeConfig } from "nextra-theme-docs";
import { useConfig } from "nextra-theme-docs";
const logo = (
<svg
height="20"
viewBox="0 0 361 70"
fill="none"
xmlns="http://www.w3.org/2000/svg"
xmlnsXlink="http://www.w3.org/1999/xlink"
>
<image href="/nav-icon.svg" />
<style jsx>{`
svg {
mask-image: linear-gradient(
60deg,
black 25%,
rgba(0, 0, 0, 0.2) 50%,
black 75%
);
mask-size: 400%;
mask-position: 0%;
}
svg:hover {
mask-position: 100%;
transition: mask-position 1s ease, -webkit-mask-position 1s ease;
}
`}</style>
</svg>
);
const config: DocsThemeConfig = {
project: {
icon: null,
link: "https://github.com/NPJigaK/twitch-follower-checker",
},
docsRepositoryBase:
"https://github.com/NPJigaK/twitch-follower-checker/tree/main",
logo,
head: function useHead() {
const { title, frontMatter } = useConfig();
// const { route } = useRouter();
// const metaTitle = (
// route === "/" || !title
// ? `${title}`
// : `${title} - Twitch Follower Checker`
// ) as string;
const socialCard = "https://twitch-follower-checker.devkey.jp/og-image.jpg";
const metaTitle =
title || "Twitch Follower Checker - Follows & Unfollows Tracking Free";
const description =
frontMatter.description ||
"The Twitch Follower Checker is a web application that easily allows you to track new followers and unfollows on your Twitch channel.";
return (
<>
<meta name="msapplication-TileColor" content="#fff" />
<meta name="theme-color" content="#fff" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta
name="keywords"
content="Twitch, Follower Checker, unfollows, unfollows Checker, Twitch Follower Tracker, Unfollow Tracker, Twitch Analytics, アンフォロー, フォロー解除"
/>
<title>{metaTitle}</title>
<meta name="description" content={description} />
<meta name="apple-mobile-web-app-title" content={metaTitle} />
<meta name="robots" content="index, follow" />
<meta name="googlebot" content="index, follow" />
<meta name="og:title" content={metaTitle} />
<meta name="og:description" content={description} />
<meta
name="og:url"
content="https://twitch-follower-checker.devkey.jp/"
/>
<meta name="og:image" content={socialCard} />
<meta name="og:type" content="website" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:creator" content="@KagiJPN" />
<meta name="twitter:image" content={socialCard} />
<meta
name="twitter:site:domain"
content="twitch-follower-checker.devkey.jp"
/>
<meta
name="twitter:url"
content="https://twitch-follower-checker.devkey.jp/"
/>
<link rel="icon" href="/favicon.ico" type="image/vnd.microsoft.icon" />
<link
rel="icon"
href="/favicon.ico"
type="image/vnd.microsoft.icon"
media="(prefers-color-scheme: dark)"
/>
<meta name="msvalidate.01" content="7B9D9DB35830909D0ABC0C6F18DD3B49" />
</>
);
},
editLink: {
content: "Edit this page on GitHub →",
},
feedback: {
content: "Question? Give us feedback →",
labels: "feedback",
},
sidebar: {
defaultMenuCollapseLevel: 4,
toggleButton: true,
},
footer: {
content: (
<div className="flex w-full flex-col items-center sm:items-start">
<div>
<a
className="flex items-center gap-1 text-current"
target="_blank"
rel="noopener noreferrer"
title="ToDo Send to the Self-Introduction page."
href=""
>
<span>Powered by devkey</span>
</a>
</div>
<p className="mt-6 text-xs">
© {new Date().getFullYear()} The devkey Project.
</p>
</div>
),
},
toc: {
backToTop: true,
},
};
export default config;