This commit is contained in:
Daniel Kluge 2022-06-23 16:21:20 +02:00
parent 81d4fe7b7f
commit b07829e6e8

View File

@ -2,8 +2,8 @@ export type ContentList = (Project|Diary)[];
export type ContentType = "project" | "diary";
export interface Project {
type: "project";
interface Content {
type: "project" | "diary";
name: string;
desc: string[];
short_desc: string;
@ -11,13 +11,12 @@ export interface Project {
repo?: string;
}
export interface Diary {
export interface Project extends Content {
type: "project";
}
export interface Diary extends Content {
type: "diary";
name: string;
desc: string[];
short_desc: string;
more?: string;
repo?: string;
entries: {
title: string;
filename: string;