feat: use .ts instead of .yaml for configurations

This commit is contained in:
saicaca
2023-10-23 17:45:07 +08:00
parent 9f213d525f
commit 1ae4a8eee9
23 changed files with 4259 additions and 375 deletions

39
src/types/config.ts Normal file
View 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,
}[],
};