Updates and more
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
9
src/content/help/en/how-to.md
Normal file
9
src/content/help/en/how-to.md
Normal file
@@ -0,0 +1,9 @@
|
||||
---
|
||||
title: How To
|
||||
description: How to do anything on SteamWar
|
||||
tags:
|
||||
- how-to
|
||||
slug: how-to
|
||||
---
|
||||
|
||||
# How to
|
||||
Reference in New Issue
Block a user