Add 'exists' flags to content types and set them

This commit is contained in:
itsfinniii
2026-03-20 16:55:33 +01:00
parent 4bb3fa3671
commit b6f3fdd15e
10 changed files with 36 additions and 9 deletions

View File

@@ -1,5 +1,6 @@
type BlogPost = {
type: "BlogPost";
exists: boolean;
id: string;
title: string;
@@ -16,5 +17,6 @@ type BlogPost = {
type BlogIndex = {
type: "BlogIndex";
exists: boolean;
pageNumber: number;
}

View File

@@ -1,5 +1,6 @@
type PhotoAlbum = {
type: "PhotoAlbum";
exists: boolean;
title: string;
url: string;
@@ -32,6 +33,8 @@ type PhotoAlbumPhoto = {
type PhotoCategory = {
type: "PhotoCategory";
exists: boolean;
category: string;
pageNumber: number;
}

View File

@@ -1,3 +1,4 @@
type PhotoCategoryIndex = {
type: "PhotoCategoryIndex";
exists: boolean;
}

View File

@@ -1,5 +1,7 @@
type PhotoPage = {
type: "PhotoPage";
exists: boolean;
id: string;
photo: PhotoProps;
text: string | null;

View File

@@ -1,4 +1,7 @@
type ProjectPost = {
type: "ProjectPost";
exists: boolean;
title: string;
url: string;
date: string;
@@ -13,5 +16,6 @@ type ProjectPost = {
type ProjectIndex = {
type: "ProjectIndex";
exists: boolean;
pageNumber: number;
}