We code better now

This commit is contained in:
2022-06-12 14:22:15 +02:00
parent 929519225a
commit 0a0020b5c0
12 changed files with 230 additions and 166 deletions

25
lib/content/types.ts Normal file
View File

@@ -0,0 +1,25 @@
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;
}[];
}