Add function that looks for all blogs

This commit is contained in:
Quinn Hegeman
2026-03-08 15:12:19 +01:00
parent 4d56dce1af
commit 3317926f61
8 changed files with 143 additions and 1 deletions

12
astro/src/types/blogs/blog.d.ts vendored Normal file
View File

@@ -0,0 +1,12 @@
type BlogPost = {
title: string;
url: string;
date: string;
content: string;
tags: Tag[];
searchEngine: SearchEngine;
lastModified: Date;
}

View File

@@ -0,0 +1,8 @@
type SearchEngine = {
title: string;
description: string;
thumbnail: PhotoProps;
canonical: string | null;
allowCrawlers: boolean;
priority: number;
}

5
astro/src/types/common/tag.d.ts vendored Normal file
View File

@@ -0,0 +1,5 @@
type Tag = {
text: string;
code: string;
color: string;
}