frontpage/lib/content/types.ts

25 lines
463 B
TypeScript
Raw Normal View History

2022-06-12 14:22:15 +02:00
export type ContentList = (Project|Diary)[];
export type ContentType = "project" | "diary";
2022-03-15 17:21:10 +01:00
2021-12-17 20:02:42 +01:00
export interface Project {
2022-06-12 14:22:15 +02:00
type: "project";
2021-12-17 20:02:42 +01:00
name: string;
desc: string[];
2022-03-15 17:21:10 +01:00
short_desc: string;
2021-12-17 20:02:42 +01:00
more?: string;
repo?: string;
2022-03-15 17:21:10 +01:00
}
export interface Diary {
2022-06-12 14:22:15 +02:00
type: "diary";
2022-03-15 17:21:10 +01:00
name: string;
desc: string[];
short_desc: string;
more?: string;
repo?: string;
entries: {
title: string;
2022-06-12 14:22:15 +02:00
filename: string;
2022-03-15 17:21:10 +01:00
}[];
2021-12-17 20:02:42 +01:00
}