-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.ts
201 lines (199 loc) · 5.4 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
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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
import type { Config } from "./types";
import { getYear } from "date-fns";
import { url } from "@/utils/url";
const config: Config = {
title: "笑颜如旧",
description: "笑颜如旧的个人博客。",
keywords: "Vue.js,JavaScript,CSS,HTML,技术博客,React.js,Git",
siteCodeva: "codeva-k69qIZlpes",
author: "xiaoyanrujiu",
favicon: url("favicon.ico"),
navbar: {
logo: import("@/custom/NavLogo.astro"),
menu: [
{
label: "首页",
url: url("/"),
icon: "tabler:home",
},
{
label: "标签",
url: url("/tags"),
icon: "tabler:tag",
},
{
label: "分类",
url: url("/categories"),
icon: "tabler:category",
},
{
label: "归档",
url: url("/archive"),
icon: "tabler:archive",
},
{
label: "友链",
url: url("/friends"),
icon: "tabler:heart-handshake",
},
{
label: "关于",
url: url("/about"),
icon: "tabler:info-circle",
},
// {
// label: '菜单示例',
// icon: 'tabler:menu-2',
// children: [
// { label: 'SubItem1', url: '#', icon: 'tabler:circle'},
// { label: 'SubItem2', url: '#', icon: 'tabler:circle'},
// {
// label: 'SubItem3',
// icon: 'tabler:menu-2',
// children: [
// { label: 'SubItem1', url: '#', icon: 'tabler:circle'},
// { label: 'SubItem2', url: '#', icon: 'tabler:circle'},
// { label: 'SubItem3', url: '#', icon: 'tabler:circle'},
// ]
// },
// ]
// },
],
hasSearchToggle: true,
hasThemeToggle: true,
},
hero: {
background: import("src/assets/hero-bg.jpg"),
description: "欢迎来到笑颜如旧的记事簿,看看最近我在折腾啥吧。",
title: import("@/custom/HeroLogo.astro"),
},
sidebar: {
widgets: [
{
name: "profile",
author: "笑颜如旧",
description: "生活总会,不期而遇",
avatar: import("src/assets/avatar.png"),
background: import("src/assets/profile-bg.jpg"),
socialIcons: [
{
label: "github",
color: "#7c8690",
icon: "tabler:brand-github",
url: "https://github.com/xiaoyanrujiu",
},
{
label: "bilibili",
color: "#fc87b2",
icon: "tabler:brand-bilibili",
url: "https://space.bilibili.com/484524792",
},
{
label: "netease music",
color: "#ff4e6a",
icon: "tabler:brand-netease-music",
url: "https://music.163.com/user/488777601",
},
// {
// label: 'twitter',
// color: '#1d9bf0',
// icon: 'tabler:brand-twitter',
// url: 'https://twitter.com/vviderx'
// },
// {
// label: 'mail',
// color: '#7562c7',
// icon: 'tabler:mail',
// url: 'mailto:[email protected]'
// }
],
},
{
name: "tag-cloud",
sortBy: "count",
order: "desc",
limit: 30,
},
{
name: "category-tree",
sortBy: "count",
order: "desc",
expandDepth: 2,
},
{
name: "component",
component: import("@/components/custom/Recommend.astro"),
},
],
},
pagination: {
pageSize: 10,
hasControls: true,
hasEdges: false,
siblings: 2,
boundaries: 1,
},
article: {
outdateTip: {
outdateLimit: 180,
},
license: {
licenseName: "CC BY-NC-SA 4.0",
licenseUrl: "https://creativecommons.org/licenses/by-nc-sa/4.0/deed.zh",
infoText: "转载或引用本文时请注明作者及出处,不得用于商业用途。",
},
},
comment: {
provider: "giscus",
options: {
repo: "xiaoyanrujiu/astro-app",
repoId: "R_kgDONWcs8w",
category: "General",
categoryId: "DIC_kwDONWcs884Cktxg",
mapping: "pathname",
reactionsEnabled: "1",
emitMetadata: "0",
inputPosition: "top",
lang: "zh-CN",
},
// provider: 'waline',
// options: {
// serverURL: 'https://waline-vercel.wider.ink/',
// meta: ['nick', 'mail', 'link'],
// requiredMeta: ['nick', 'mail'],
// wordLimit: 200,
// commentSorting: 'latest',
// login: 'disable',
// search: false,
// copyright: false,
// reaction: false,
// emoji: [
// '//unpkg.com/@waline/[email protected]/weibo',
// '//unpkg.com/@waline/[email protected]/bilibili',
// // '//cdn.jsdelivr.net/gh/GamerNoTitle/ValineCDN@master/Coolapk/',
// ],
// }
},
footer: {
links: [
{ label: "更新日志", url: url("changelog") },
{ label: "引用声明", url: url("reference") },
{ label: "关于", url: url("about") },
{ label: "归档", url: url("archive") },
{ label: "友情链接", url: url("friends") },
{ label: "Github", url: "https://github.com/xiaoyanrujiu" },
],
declarations: [
`Copyright © ${getYear(new Date())} 笑颜如旧 All Rights Reserved.`,
],
generator: true,
rss: true,
sitemap: true,
},
algolia: {
appId: "DQ6GN6DU5W",
apiKey: "b30df5589b4e17cd1cb99b7d679eb859",
indexName: "smilen",
},
};
export default config;