Fix #397: Adjust URL for Chinese Categories and Tags

This commit is contained in:
prototypa
2024-04-14 13:20:55 -04:00
parent c830d68321
commit f234e63eb4
9 changed files with 71 additions and 39 deletions

9
src/types.d.ts vendored
View File

@@ -24,9 +24,9 @@ export interface Post {
image?: ImageMetadata | string;
/** */
category?: string;
category?: Taxonomy
/** */
tags?: Array<string>;
tags?: Taxonomy[];
/** */
author?: string;
@@ -44,6 +44,11 @@ export interface Post {
readingTime?: number;
}
export interface Taxonomy {
slug: string;
title: string;
}
export interface MetaData {
title?: string;
ignoreTitleTemplate?: boolean;