frontpage/lib/content/types.ts
2022-06-12 14:22:15 +02:00

25 lines
463 B
TypeScript

export type ContentList = (Project|Diary)[];
export type ContentType = "project" | "diary";
export interface Project {
type: "project";
name: string;
desc: string[];
short_desc: string;
more?: string;
repo?: string;
}
export interface Diary {
type: "diary";
name: string;
desc: string[];
short_desc: string;
more?: string;
repo?: string;
entries: {
title: string;
filename: string;
}[];
}