mirror of
https://github.com/Fluffy-Bean/website.git
synced 2025-06-02 00:33:14 +00:00
Add timestamps to posts
Redesign homebutton a bit arugh Clean up Card stuff
This commit is contained in:
parent
59f1904d88
commit
b22adbda96
11 changed files with 87 additions and 45 deletions
|
@ -6,7 +6,7 @@ const postsCollection = defineCollection({
|
|||
draft: z.boolean().optional().default(false),
|
||||
title: z.string(),
|
||||
description: z.string(),
|
||||
date: z.string().transform((str) => new Date(str)),
|
||||
pubDate: z.string().transform((str) => new Date(str)),
|
||||
tags: z.array(z.string()),
|
||||
}),
|
||||
});
|
||||
|
@ -17,6 +17,7 @@ const projectsCollection = defineCollection({
|
|||
draft: z.boolean().optional().default(false),
|
||||
title: z.string(),
|
||||
description: z.string(),
|
||||
pubDate: z.string().transform((str) => new Date(str)),
|
||||
tags: z.array(z.string()),
|
||||
}),
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue