Add timestamps to posts

Redesign homebutton a bit
arugh
Clean up Card stuff
This commit is contained in:
Michał Gdula 2024-05-26 21:56:50 +01:00
parent 59f1904d88
commit b22adbda96
11 changed files with 87 additions and 45 deletions

View file

@ -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()),
}),
});

View file

@ -1,6 +1,6 @@
---
title: GwaGwa
description: This astro page
description: This is a very very very very very very very very very very very very long description of a post
tags:
- "GwaGwa"
- "Gaming"