-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathblog.config.ts
54 lines (48 loc) · 1.92 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
import type { BundledLanguage } from 'shiki'
import type { FeedEntry } from '~/types/feed'
// 存储 nuxt.config 和 app.config 共用的配置
const blogConfig = {
title: 'SteinsNote',
subtitle: 'Nurupo, Ga?!',
description: 'El Psy Kongroo, 欢迎光临未来道具研究所博客分站, 本站致力于记录某些奇怪技术?与Lab项目进度',
author: {
name: 'Labmem00',
avatar: 'https://cdn.jsdelivr.net/gh/Labmem-00/img-hosting@main/LabBlog/助手.jpg',
email: '[email protected]',
homepage: 'https://blog.labmem.chat',
},
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://cdn.jsdelivr.net/gh/Labmem-00/img-hosting@main/LabBlog/favicon.ico',
language: 'zh-CN',
timeEstablished: '2023-04-1',
timezone: 'Asia/Shanghai',
url: 'https://blog.labmem.chat',
// 用于 Shiki、Plain Shiki 引入代码高亮
// 同时用于显示代码块语言对应的 Iconify Catppuccin 图标
fileExtensions: <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'],
feed: {
limit: 50,
},
hideContentPrefixes: [
'/posts',
'/columns'
],
}
export const feedEntry = <FeedEntry>{
author: blogConfig.author.name,
sitenick: 'Lab',
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