This commit is contained in:
砂糖
2025-11-21 13:36:06 +08:00
commit 7cd50654ed
112 changed files with 14246 additions and 0 deletions

16
types/blog.ts Normal file
View File

@@ -0,0 +1,16 @@
export type BlogPost = {
locale?: string
title: string
description?: string
image?: string
slug: string
tags?: string
date: Date
visible?: 'draft' | 'invisible' | 'published'
pin?: boolean
content: string
metadata: {
[key: string]: any
},
}

21
types/common.ts Normal file
View File

@@ -0,0 +1,21 @@
export interface HeaderLink {
id?: string;
name: string;
href: string;
target?: string;
rel?: string;
};
export interface FooterLink {
title: string;
links: Link[];
};
interface Link {
id?: string;
href: string;
name: string;
target?: string;
rel?: string;
useA?: boolean;
};

32
types/siteConfig.ts Normal file
View File

@@ -0,0 +1,32 @@
export type AuthorsConfig = {
name: string
url: string
}
export type ThemeColor = {
media: string
color: string
}
export type SiteConfig = {
name: string
tagLine?: string
description?: string
url: string
authors: AuthorsConfig[]
socialLinks?: {
github?: string
bluesky?: string
twitter?: string
twitterZh?: string
discord?: string
email?: string
}
creator: string
themeColors?: string | ThemeColor[]
defaultNextTheme?: string
icons: {
icon: string
shortcut?: string
apple?: string
}
}