feat: use .ts instead of .yaml for configurations

This commit is contained in:
saicaca committed 2023-10-23 17:54:39 +08:00
1 parent 9f213d525f
commit 1ae4a8eee9
23 files changed
+4259 -375

No files matched your search

+39
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,
}[],
};