Tag definitions and new post

This commit is contained in:
2023-04-09 21:54:03 -04:00
parent e1480a0efd
commit ab28ea102a
4 changed files with 86 additions and 29 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
---
title: 'Nostalgia'
pubDate: '2023-03-04'
tags: ['Life', 'Gaming', 'Movies']
tags: ['Life', 'Gaming', 'Movies & TV']
---
I've recently been playing 2 games that would be considered "retro", but referring to them as such would make me feel old, so we'll call them "classics". These classics are Metroid Prime, via the recent remaster on Switch, and The Legend of Zelda: The Minish Cap, via the Switch Online GameBoy Advance collection. It got me thinking about how nostalgia can color our opinions of certain pieces of media, primarily when comparing media of a similar vintage.
@@ -0,0 +1,5 @@
---
title: 'More Swift Learnings: Using JSON For Data Storage'
pubDate: '4/9/23'
tags: ['MacOS', 'Learning', 'Programming']
---
+17 -1
View File
@@ -4,7 +4,23 @@ const blogCollection = defineCollection({
schema: z.object({
title: z.string(),
pubDate: z.string().transform((str) => new Date(str)),
tags: z.array(z.string()),
tags: z.array(
z.union([
z.literal('Apps'),
z.literal('Gaming'),
z.literal('Learning'),
z.literal('Life'),
z.literal('MacOS'),
z.literal('Music'),
z.literal('Making Stuff'),
z.literal('Mental Health'),
z.literal('Movies & TV'),
z.literal('Programming'),
z.literal('Tech'),
z.literal('Tutorial'),
z.literal('Web Dev'),
])
),
}),
})