24 lines
420 B
TypeScript
24 lines
420 B
TypeScript
export interface BlogAuthor {
|
|
name: string;
|
|
avatar: string;
|
|
role: string;
|
|
}
|
|
|
|
export interface BlogPost {
|
|
id: string;
|
|
title: string;
|
|
excerpt: string;
|
|
content: string;
|
|
image: string;
|
|
author: BlogAuthor;
|
|
date: string;
|
|
readTime: string;
|
|
tags: string[];
|
|
category: string;
|
|
}
|
|
|
|
export interface BlogData {
|
|
posts: BlogPost[];
|
|
categories: string[];
|
|
tags: string[];
|
|
} |