-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.ts
64 lines (61 loc) · 1.75 KB
/
config.ts
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
// vitepress/types/default-theme.d.ts
type Appearance = boolean | "dark" | undefined;
type SocialLinkIcon =
| "discord"
| "facebook"
| "github"
| "instagram"
| "linkedin"
| "mastodon"
| "slack"
| "twitter"
| "youtube"
| { svg: string };
interface SocialLink {
icon: SocialLinkIcon;
link: string;
ariaLabel?: string;
}
const themeConfig = {
// https://vitepress.dev/reference/site-config
base: "/vitepress-theme-trigger/",
lang: "zh-TW",
logo: "/avatar.png",
favicon: "/favicon.png",
title: "Trigger !",
description: "A blog powered by VitePress",
hostname: "https://example.com",
lastUpdated: true,
cacheDir: "./node_modules/vitepress_cache",
appearance: <Appearance>"dark",
cleanUrls: true,
mdMath: true, // math equations
mdLineNums: true, // line numbers for code block
// https://vitepress.dev/reference/default-theme-config
nav: [
{ text: "🏠 Home", link: "/" },
{ text: "📚 Archives", link: "/archives" },
{ text: "📁 Category", link: "/category" },
{ text: `🔖 Tags`, link: "/tags" },
{ text: "🙆 About", link: "/about" },
],
aside: false,
socialLinks: <SocialLink[]>[
{ icon: "github", link: "https://github.com/laplacetw" },
],
footer: {
message: `Powered by <a target='_blank' href='https://vitepress.dev'>VitePress</a>
Theme by <a target='_blank' href='https://github.com/laplacetw/vitepress-theme-trigger'>Trigger</a>`,
copyright: `<a target='_blank' href='https://creativecommons.org/licenses/by/4.0/'>
CC BY 4.0</a> | © Trigger ${new Date().getFullYear()}`,
},
// custom theme config
postsPerPage: 5,
utterances: {
repo: "",
issueTerm: "title",
light: "github-light",
dark: "gruvbox-dark",
},
};
export default themeConfig;