This commit is contained in:
2026-01-01 15:19:58 +08:00
parent 93880becef
commit 73ebd02cdb
25 changed files with 14913 additions and 880 deletions

View File

@@ -7,14 +7,5 @@ export interface BlogPost {
tags: string[];
categories: string[];
published: boolean;
meta: BlogPostMeta; // 添加 meta 属性
path: string; // 添加 path 属性
}
interface BlogPostMeta {
image?: string;
alt?: string;
date?: string;
tags?: string[];
// 根据实际情况添加其他可能的属性
path: string;
}

25
app/types/twikoo.d.ts vendored Normal file
View File

@@ -0,0 +1,25 @@
export interface TwikooConfig {
envId: string;
region?: string;
el?: string | HTMLElement;
path?: string;
lang?: string;
theme?: string;
locale?: Record<string, string>;
[key: string]: string | HTMLElement | undefined;
}
export interface TwikooAPI {
(config: TwikooConfig): Promise<void>;
}
declare module "twikoo" {
export const twikoo: TwikooAPI;
export default twikoo;
}
declare module "#app" {
interface NuxtApp {
$twikoo: TwikooAPI;
}
}