This commit is contained in:
Auggie2lbcf
2025-06-13 17:54:41 -05:00
parent 2efadfea59
commit 3e82713e7a
11 changed files with 259 additions and 147 deletions
+5
View File
@@ -111,4 +111,9 @@ export async function getPostData(id: string): Promise<PostData> {
export function getPostsByTag(tag: string): PostMetadata[] {
const allPosts = getSortedPostsData();
return allPosts.filter(post => post.tags.includes(tag));
}
export function getPostsByAuthor(author: string): PostMetadata[] {
const allPosts = getSortedPostsData();
return allPosts.filter(post => post.author.includes(author));
}