mirror of
https://github.com/versia-pub/blog.git
synced 2026-03-13 01:29:15 +01:00
feat: ✨ Initialize new repo
This commit is contained in:
commit
e7941231a5
23 changed files with 858 additions and 0 deletions
28
types/posts.ts
Normal file
28
types/posts.ts
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
export interface FrontMatter {
|
||||
title: string;
|
||||
description: string;
|
||||
image: string;
|
||||
created_at: string;
|
||||
private?: string;
|
||||
author: string;
|
||||
author_image: string;
|
||||
author_handle: string;
|
||||
}
|
||||
|
||||
export interface Post {
|
||||
title: string;
|
||||
description: string;
|
||||
image: string;
|
||||
banner?: string;
|
||||
author: Author;
|
||||
private: boolean;
|
||||
created_at: string;
|
||||
content: string;
|
||||
path: string;
|
||||
}
|
||||
|
||||
export interface Author {
|
||||
name: string;
|
||||
image: string;
|
||||
handle: string;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue