Files
fuwari/src/types/config.ts
T
2023-11-03 14:15:17 +08:00

46 lines
684 B
TypeScript

export type SiteConfig = {
title: string,
subtitle: string,
url: 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,
}[],
};
export type LicenseConfig = {
enable: boolean;
name: string,
url: string,
}