-
Notifications
You must be signed in to change notification settings - Fork 7
/
blog.config.ts
76 lines (66 loc) · 3.07 KB
/
blog.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
import type { BundledLanguage, BundledTheme } from 'shiki'
import type { FeedEntry } from '~/types/feed'
// 存储 nuxt.config 和 app.config 共用的配置
const blogConfig = {
title: '纸鹿摸鱼处',
subtitle: '纸鹿至麓不知路,支炉制露不止漉',
description: '纸鹿本鹿的个人博客,分享技术与生活。“折腾不止,摸鱼生活——摸门🙏🏻”。纸鹿是一名开源爱好者,结识了许多志同道合的朋友。这个博客记录了他在生活和技术学习中的点滴经历,充满启发与思考。网站界面简洁美观,内容丰富实用,人气互动活跃,涵盖了编程、生活、学习等多个领域,为读者提供了卓越的阅读体验。',
author: {
name: '纸鹿本鹿',
avatar: 'https://www.zhilu.cyou/api/avatar.png',
email: '[email protected]',
homepage: 'https://www.zhilu.cyou/',
},
copyright: {
abbr: 'CC BY-NC-SA 4.0',
name: '署名-非商业性使用-相同方式共享 4.0 国际',
url: 'https://creativecommons.org/licenses/by-nc-sa/4.0/deed.zh-hans',
},
favicon: 'https://www.zhilu.cyou/api/icon.png',
language: 'zh-CN',
timeEstablished: '2019-07-20',
timezone: 'Asia/Shanghai',
url: 'https://blog.zhilu.cyou/',
feed: {
limit: 50,
},
hideContentPrefixes: ['/posts'],
imageDomains: [
// 自动启用本域名的 Nuxt Image
// 'www.zhilu.cyou',
// '7.isyangs.cn',
],
robotsNotIndex: ['/preview', '/previews/*'],
scripts: [
{ 'src': 'https://zhi.zhilu.cyou/zhi.js', 'data-website-id': 'a1997c81-a42b-46f6-8d1d-8fbd67a8ef41', 'defer': true },
{ 'src': 'https://static.cloudflareinsights.com/beacon.min.js', 'data-cf-beacon': '{"token": "97a4fe32ed8240ac8284e9bffaf03962"}', 'defer': true },
],
// 用于 Shiki、Plain Shiki 引入代码高亮
// 同时用于显示代码块语言对应的 Iconify Catppuccin 图标
shiki: {
langs: <BundledLanguage[]>['bat', 'c', 'cpp', 'css', 'diff', 'html', 'ini', 'java', 'js', 'json', 'log', 'makefile', 'matlab', 'md', 'mdc', 'powershell', 'python', 'sh', 'ssh-config', 'toml', 'ts', 'tsx', 'vb', 'vue', 'xml', 'yaml'],
themes: <BundledTheme[]>['catppuccin-latte', 'one-dark-pro'],
defaultTheme: <BundledTheme>'catppuccin-latte',
darkTheme: <BundledTheme>'one-dark-pro',
},
twikoo: {
js: 'https://gcore.jsdelivr.net/npm/[email protected]/dist/twikoo.all.min.js',
envId: 'https://twikoo.zhilu.cyou/',
preload: 'https://twikoo.zhilu.cyou/',
},
}
// 用于生成 OPML 和友链页面配置
export const feedEntry = <FeedEntry>{
author: blogConfig.author.name,
sitenick: '摸鱼处',
title: blogConfig.title,
desc: blogConfig.subtitle || blogConfig.description,
link: blogConfig.url,
feed: new URL('/atom.xml', blogConfig.url).toString(),
icon: blogConfig.favicon,
avatar: blogConfig.author.avatar,
archs: ['Nuxt', 'Vercel'],
date: blogConfig.timeEstablished,
comment: '这是我自己',
}
export default blogConfig