Add function that looks for all blogs
This commit is contained in:
12
astro/src/types/blogs/blog.d.ts
vendored
Normal file
12
astro/src/types/blogs/blog.d.ts
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
type BlogPost = {
|
||||
title: string;
|
||||
url: string;
|
||||
date: string;
|
||||
content: string;
|
||||
|
||||
tags: Tag[];
|
||||
|
||||
searchEngine: SearchEngine;
|
||||
|
||||
lastModified: Date;
|
||||
}
|
||||
8
astro/src/types/common/searchEngine.d.ts
vendored
Normal file
8
astro/src/types/common/searchEngine.d.ts
vendored
Normal 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
5
astro/src/types/common/tag.d.ts
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
type Tag = {
|
||||
text: string;
|
||||
code: string;
|
||||
color: string;
|
||||
}
|
||||
Reference in New Issue
Block a user