mirror of
https://github.com/saicaca/fuwari.git
synced 2026-01-12 07:12:52 +01:00
feat: use .ts instead of .yaml for configurations
This commit is contained in:
39
src/types/config.ts
Normal file
39
src/types/config.ts
Normal file
@@ -0,0 +1,39 @@
|
||||
export type SiteConfig = {
|
||||
title: string,
|
||||
subtitle: string,
|
||||
|
||||
lang: string,
|
||||
|
||||
themeHue: number,
|
||||
banner: {
|
||||
enable: boolean,
|
||||
src: string,
|
||||
}
|
||||
};
|
||||
|
||||
export enum LinkPreset {
|
||||
Home,
|
||||
Archive,
|
||||
About,
|
||||
}
|
||||
|
||||
export type NavBarLink = {
|
||||
name: string,
|
||||
url: string,
|
||||
external?: boolean
|
||||
}
|
||||
|
||||
export type NavBarConfig = {
|
||||
links: (NavBarLink | LinkPreset)[],
|
||||
}
|
||||
|
||||
export type ProfileConfig = {
|
||||
avatar?: string,
|
||||
name: string,
|
||||
bio?: string,
|
||||
links: {
|
||||
name: string,
|
||||
url: string,
|
||||
icon: string,
|
||||
}[],
|
||||
};
|
||||
Reference in New Issue
Block a user