Use Content Component

This commit is contained in:
2022-10-15 22:17:51 +02:00
parent c4b3471062
commit 46c755481a
6 changed files with 50 additions and 42 deletions

View File

@ -16,10 +16,21 @@ export interface Project extends Content {
type: "project";
}
export interface DiaryEntry {
title: string;
filename: string;
}
export interface Diary extends Content {
type: "diary";
entries: {
title: string;
filename: string;
}[];
entries: DiaryEntry[];
}
export interface ProjectRender extends Project {
html: string;
}
export interface DiaryRender extends Diary {
html: string;
pageSelected: number;
}