-
Notifications
You must be signed in to change notification settings - Fork 6
/
theme.config.jsx
60 lines (60 loc) · 1.37 KB
/
theme.config.jsx
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
import { useRouter } from "next/router";
export default {
logo: <strong>Modern React DeepDive Book Study</strong>,
project: {
link: "https://github.com/HOJOON07/react-deepdive-study",
},
sidebar: {
// 시이드바 설정 config
titleComponent({ title }) {
if (title.includes("week")) {
return (
<div
style={{
fontSize: "1.2rem",
}}
>
{title}
</div>
);
} else if (title.includes("리액트")) {
return (
<div
style={{
fontSize: "1.25rem",
}}
>
{title}
</div>
);
} else if (title.includes("발표")) {
return (
<div
style={{
fontSize: "1.2rem",
}}
>
{title}
</div>
);
}
return <> {title}</>;
},
defaultMenuCollapseLevel: 1,
},
useNextSeoProps() {
const { asPath } = useRouter();
if (asPath === "/") {
return {
titleTemplate: "React DeepDive",
};
}
},
head: (
<>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta property="og:title" content="리액트 딥다이브 스터디" />
<meta property="og:description" content="모던 리액트 딥다이브" />
</>
),
};