-
Notifications
You must be signed in to change notification settings - Fork 1
/
blog-theme.ts
83 lines (73 loc) · 2.25 KB
/
blog-theme.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
// 主题独有配置
import {getThemeConfig} from '@sugarat/theme/node'
// 开启RSS支持(RSS配置)
import type {Theme} from '@sugarat/theme'
import friendLinkJson from './data/friend-links.json';
import {useData} from "vitepress";
const baseUrl = 'https://sfkm.me'
const RSS: Theme.RSSOptions = {
title: "Snowykami's Blog RSS",
baseUrl,
copyright: `Copyright (c) ${new Date().getFullYear()} Snowykami`,
description: 'Snowykami的个人博客RSS订阅',
language: 'zh-cn',
favicon: 'https://sfkm.me/favicon.ico',
}
// 所有配置项,详见文档: https://theme.sugarat.top/
const blogTheme = getThemeConfig({
timeline: true,
// 开启RSS支持
RSS,
hotArticle: {
},
// 搜索
// 默认开启pagefind离线的全文搜索支持(如使用其它的可以设置为false)
// search: false,
// markdown 图表支持(会增加一定的构建耗时)
// mermaid: true
// 页脚
footer: [
{
version: false,
copyright: {
message: `${new Date().getFullYear()} Snowykami`,
link: "https://github.com/snowykami/blog",
},
bottomMessage: [
"Power by <a href='https://vitepress.dev/' target='_blank'>VitePress</a> <a href='https://theme.sugarat.top/' target='_blank'>sugarat/theme</a>",
"Serve by <a href='https://vercel.com' target='_blank'>Vercel</a> and <a href='https://github.com/liteyuki-flow' target='_blank'>liteyuki-flow</a>",
]
}
],
// 主题色修改
themeColor: 'el-blue',
// 文章默认作者
author: 'Snowykami',
comment: {
repo: 'snowykami/blog',
repoId: 'R_kgDOMupitg',
category: 'Announcements',
categoryId: 'DIC_kwDOMupits4Civ6i',
inputPosition: 'top',
},
// 友链
friend: {
list: friendLinkJson,
limit: 6,
random: true
},
// 公告
popover: {
mobileMinify: true,
title: 'popover.title',
body: [
{
type: 'button',
content: 'popover.content.liteyukibotdev',
link: 'https://bot.liteyuki.icu'
},
],
duration: 0
},
})
export {blogTheme}