blog/types/posts.ts

37 lines
693 B
TypeScript
Raw Normal View History

2024-10-19 22:46:11 +02:00
export interface FrontMatter {
title: string;
description: string;
image: string;
image_credit?: string;
image_width?: number;
image_height?: number;
2024-10-19 22:46:11 +02:00
created_at: string;
private?: string;
author: string;
author_image: string;
author_handle: string;
}
export interface Post {
title: string;
description: string;
image: {
url: string;
credit?: string;
width?: number;
height?: number;
};
2024-10-19 22:46:11 +02:00
banner?: string;
author: Author;
private: boolean;
created_at: string;
content: string;
path: string;
}
export interface Author {
name: string;
image: string;
handle: string;
}