-
Notifications
You must be signed in to change notification settings - Fork 0
/
theme.config.tsx
142 lines (138 loc) · 5 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
import { useRouter } from "next/router";
import { DocsThemeConfig, useConfig } from "nextra-theme-docs";
import Image from "next/image";
import GiscusComments from "~/components/GiscusComments/GiscusComments";
import ChatBot from "~/components/ChatBot/ChatBot";
const config: DocsThemeConfig = {
project: {
link: "https://github.com/LuciferUchiha/georgerowlands.ch/tree/main/",
},
docsRepositoryBase: "https://github.com/LuciferUchiha/georgerowlands.ch/tree/main/",
primaryHue: 270,
nextThemes: {
defaultTheme: "dark",
},
editLink: {
text:"Edit this page on GitHub ✍🏻",
},
feedback: {
content: null,
},
useNextSeoProps() {
const { asPath } = useRouter();
return { titleTemplate: asPath !== "/" ? "%s – GR" : "georgerowlands.ch" };
},
head: () => {
const { asPath } = useRouter();
const { frontMatter } = useConfig();
const url = "https://georgerowlands.ch" + asPath;
const title =
asPath !== "/"
? `${frontMatter.title} – George Rowlands' Digital Garden`
: "George Rowlands' Digital Garden";
const description =
frontMatter.description || "George Rowlands' Digital Garden";
return (
<>
<meta property="og:url" content={url} />
<meta property="og:title" content={title} />
<meta property="og:description" content={description} />
</>
);
},
logo: (
<>
<svg
version="1.0"
xmlns="http://www.w3.org/2000/svg"
width="36px"
height="36px"
viewBox="0 0 128 128"
preserveAspectRatio="xMidYMid meet"
>
<g transform="translate(0,128) scale(0.1,-0.1)">
<path
fill="currentColor"
d="M707 1214 c-187 -45 -463 -255 -529 -401 -69 -154 143 -163 395 -17
44 25 81 43 83 41 6 -5 -54 -41 -141 -85 -134 -67 -344 -223 -400 -296 -15
-19 -29 -53 -32 -74 -5 -38 -4 -40 32 -52 133 -44 298 71 483 337 110 157 112
158 282 158 106 0 119 -2 168 -28 51 -27 86 -67 98 -115 19 -72 -46 -161 -159
-217 -81 -40 -221 -78 -268 -73 l-31 3 53 80 c28 44 76 111 105 149 30 37 54
74 54 82 0 53 -93 -45 -202 -213 l-73 -112 -41 -1 c-25 0 -47 -6 -54 -15 -11
-13 -9 -20 13 -43 15 -16 27 -32 27 -36 0 -5 -21 -51 -47 -102 -26 -51 -45
-96 -41 -99 17 -18 49 13 92 90 26 47 49 85 51 85 2 0 61 -31 132 -69 150 -81
176 -91 171 -65 -2 11 -53 45 -133 88 -169 92 -156 82 -143 111 8 17 22 26 47
30 227 36 342 78 427 157 52 48 74 90 74 142 0 145 -198 254 -394 217 -33 -6
-61 -9 -63 -8 -2 2 13 25 32 50 19 25 35 48 35 51 0 21 -57 -3 -128 -54 -193
-138 -406 -222 -450 -178 -38 38 7 117 135 238 134 127 313 222 423 224 49 1
55 -1 58 -20 2 -12 -9 -35 -24 -53 -18 -22 -24 -35 -16 -43 23 -23 92 47 92
95 0 55 -73 70 -193 41z m-156 -536 c-147 -213 -272 -320 -375 -322 -34 -1
-41 2 -44 19 -7 53 141 187 340 308 61 37 115 67 120 67 5 0 -13 -33 -41 -72z"
/>
</g>
</svg>
<span className="ml-4 font-bold">George Rowlands</span>
</>
),
search: {
// TODO I can replace the component that is shown for when nothing was found with an image of a dead tree with "emptyResult",
placeholder: "Search the Garden...",
},
navbar: {
extraContent: <ChatBot />,
},
sidebar: { defaultMenuCollapseLevel: 1 },
toc: {
title: "Table of contents",
backToTop: true,
},
main: ({ children }) => {
return (
<>
{children}
<GiscusComments />
</>
);
},
footer: {
text: () => (
<div className="flex w-full flex-row items-center justify-between">
<ul>
<li>
<p className="font-bold">Socials</p>
</li>
<li>
<a
href="https://www.linkedin.com/in/georgerowlands/"
className="text-sm"
>
Linkedin↗
</a>
</li>
<li>
<a href="https://github.com/LuciferUchiha" className="text-sm">
GitHub↗
</a>
</li>
<li>
<a
href="https://stackoverflow.com/users/10994912/george-r"
className="text-sm"
>
StackOverflow↗
</a>
</li>
</ul>
<a href="https://www.buymeacoffee.com/georgerowlands" target="_blank">
<Image
src="/buyMeACoffeePurple.png"
alt="Buy Me A Coffee"
width={200}
height={75}
/>
</a>
</div>
),
},
};
export default config;