blog-robertops-v2/src/utils/config-utils.ts
2023-10-18 21:24:51 +08:00

40 lines
775 B
TypeScript

// @ts-ignore
import _config from '../../fuwari.config.yml';
interface FuwariConfig {
title: string;
menu: {
[key: string]: string;
};
lang: string;
appearance: {
hue: number;
};
favicon: string;
banner: {
enable: boolean;
url: string;
position: string;
onAllPages: boolean;
};
sidebar: {
widgets: {
normal: string | string[];
sticky: string | string[];
};
};
profile: {
avatar: string;
author: string;
subtitle: string;
links: {
name: string;
icon: string;
url: string;
}[];
}
}
const config: FuwariConfig = _config;
export const getConfig = () => config;