forked from tangmantan/afilmory
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsite.config.ts
More file actions
70 lines (64 loc) · 1.5 KB
/
site.config.ts
File metadata and controls
70 lines (64 loc) · 1.5 KB
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
import { merge } from 'es-toolkit/compat'
import userConfig from './config.json'
export interface SiteConfig {
name: string
title: string
model: string
description: string
url: string
accentColor: string
author: Author
social?: Social
feed?: Feed
map?: MapConfig
mapStyle?: string
}
/**
* Map configuration - can be either:
* - A string for a single provider: 'maplibre'
* - An array for multiple providers in priority order: ['maplibre']
*/
type MapConfig = 'maplibre'[]
interface Feed {
folo?: {
challenge?: {
feedId: string
userId: string
}
}
}
interface Author {
name: string
url: string
avatar?: string
}
interface Social {
twitter?: string
github?: string
gitee?: string
douyin?: string
rss?: boolean
}
const defaultConfig: SiteConfig = {
name: '懒洋洋喝咖啡',
title: '懒洋洋喝咖啡',
model: 'dark',
description: '记录生活中的美好瞬间,通过我的镜头记录每日的温暖和情感。',
url: 'https://pix.tanmantang.com',
accentColor: '#007bff',
author: {
name: '谭满堂',
url: 'https://tanmantang.com/',
avatar: 'https://tanmantang.oss-cn-chengdu.aliyuncs.com/public/logo.png',
},
map: ['maplibre'],
mapStyle: 'https://tiles.openfreemap.org/styles/liberty',
social: {
github: 'tangmantan/afilmory',
gitee: 'tanmantang/afilmory',
douyin: 'https://douyin.com',
rss: true,
},
}
export const siteConfig: SiteConfig = merge(defaultConfig, userConfig) as any
export default siteConfig