forked from sadanandpai/javascript-code-challenges
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy paththeme.config.jsx
More file actions
82 lines (78 loc) · 2.42 KB
/
Copy paththeme.config.jsx
File metadata and controls
82 lines (78 loc) · 2.42 KB
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 { useRouter } from "next/router";
const metaTags = (
<>
<link rel="icon" type="image/x-icon" href="/favicon.ico" />
<meta
name="description"
content="Collection of modern interview code challenges on JavaScript suitable for Interviewees | Interviewers | Knowledge test | Practice"
/>
<meta property="og:url" content="https://jscodechallenges.vercel.app/" />
<meta property="og:type" content="website" />
<meta property="og:title" content="JavaScript Code Challenges" />
<meta
property="og:description"
content="Collection of modern interview code challenges on JavaScript suitable for Interviewees | Interviewers | Knowledge test | Practice"
/>
<meta
name="image"
property="og:image"
content="https://jscodechallenges.vercel.app/banner.png"
/>
<meta name="twitter:card" content="summary_large_image" />
<meta property="twitter:domain" content="jscodechallenges.vercel.app" />
<meta
property="twitter:url"
content="https://jscodechallenges.vercel.app/"
/>
<meta name="twitter:title" content="JavaScript Code Challenges" />
<meta
name="twitter:description"
content="Collection of modern interview code challenges on JavaScript suitable for Interviewees | Interviewers | Knowledge test | Practice"
/>
<meta
name="twitter:image"
content="https://jscodechallenges.vercel.app/banner.png"
/>
<meta name="author" content="Sadanand Pai" />
</>
);
const config = {
head: metaTags,
logo: <span>JavaScript Code Challenges</span>,
project: {
link: "https://github.com/sadanandpai/javascript-code-challenges/",
},
docsRepositoryBase:
"https://github.com/sadanandpai/javascript-code-challenges/tree/main/web",
search: {
placeholder: "Search",
},
sidebar: { toggleButton: true },
toc: { backToTop: true },
feedback: { content: null },
useNextSeoProps() {
const { asPath } = useRouter();
if (asPath === "/") {
return {
titleTemplate: "JavaScript Code Challenges",
};
}
return {
titleTemplate: "%s - JavaScript Code Challenges",
};
},
gitTimestamp: null,
footer: {
text: (
<span>
<a
href="https://github.com/sadanandpai/javascript-code-challenges/blob/main/LICENSE"
target="_blank"
>
MIT License - Copyright (c) 2020
</a>
</span>
),
},
};
export default config;