Updates and more

This commit is contained in:
2023-11-03 20:31:27 +01:00
parent b5a54d087b
commit e97e86f9ac
22 changed files with 363 additions and 80 deletions

View File

@@ -1,5 +1,5 @@
// @ts-ignore
import { defineCollection, z } from 'astro:content';
import {defineCollection, reference, z} from 'astro:content';
export const pages = defineCollection({
type: "content",
@@ -10,6 +10,30 @@ export const pages = defineCollection({
})
})
export const help = defineCollection({
type: "content",
schema: z.object({
title: z.string().min(1).max(80),
description: z.string().min(1).max(120),
tags: z.array(z.string()),
related: z.array(reference('help')).optional()
})
})
export const event = defineCollection({
type: "content",
schema: z.object({
name: z.string(),
start: z.date(),
end: z.date(),
mode: z.string().optional(),
leader: z.string().array().optional(),
eventId: z.number().gte(0)
})
})
export const collections = {
'pages': pages
'pages': pages,
'help': help,
'event': event
}

View File

@@ -0,0 +1,9 @@
---
title: How To
description: How to do anything on SteamWar
tags:
- how-to
slug: how-to
---
# How to