init
This commit is contained in:
16
types/blog.ts
Normal file
16
types/blog.ts
Normal 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
21
types/common.ts
Normal 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
32
types/siteConfig.ts
Normal 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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user