-
-
Notifications
You must be signed in to change notification settings - Fork 129
Expand file tree
/
Copy pathconstants.ts
More file actions
54 lines (50 loc) · 1.26 KB
/
Copy pathconstants.ts
File metadata and controls
54 lines (50 loc) · 1.26 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
/**
* Metadata for your site
*/
export const SITE = {
url: "https://tkdodo.eu",
title: "TkDodo's blog",
titleDefault: "TkDodo's blog",
description:
"A technical blog about frontend-development, TypeScript and React",
lang: "en-US",
defaultOgImage: "/blog/blog-banner.png",
defaultAuthor: "TkDodo",
} as const;
interface Header {
internal: Array<{ title: string; url: string }>;
external: Array<{
title: string;
url: string;
props?: Record<string, unknown>;
}>;
}
/**
* Links used in the header
*/
export const HEADER: Header = {
internal: [
{ title: "Blog", url: "/all" },
{ title: "Tags", url: "/tags" },
{ title: "Sponsors", url: "/sponsors" },
{ title: "Rss", url: "/rss.xml" },
],
external: [
{
title: "Bluesky",
url: "https://bsky.app/profile/tkdodo.eu",
props: { target: "_blank", rel: "noreferrer noopener" },
},
{
title: "GitHub",
url: "https://github.com/tkdodo",
props: { target: "_blank", rel: "noreferrer noopener" },
},
],
};
export const SKIP_NAV_ID = "skip-to-content";
/**
* Available "asides" that can be used in MDX files
*/
export const ASIDE_TYPES = ["note", "tip", "caution", "danger"] as const;
export type AsideType = (typeof ASIDE_TYPES)[number];