@sleek vortex Here's my full content.config.ts file:
import { glob, file } from 'astro/loaders';
import { z, defineCollection, reference } from 'astro:content';
export const collections = {
docs: defineCollection({
loader: glob({
pattern: '**/*.{md,mdx}',
base: './src/content/documentation',
}),
schema: z.object({
title: z.string(),
description: z.string().optional(),
draft: z.boolean().optional(),
}),
}),
projects: defineCollection({
loader: glob({ pattern: '**/*.{md,mdx}', base: './src/content/projects' }),
schema: z.object({
title: z.string(),
owner: reference("groups") || reference("members"),
description: z.string().optional(),
status: z.object({
wip: z.boolean(),
stage: z.string().optional(),
}),
}),
}),
members: defineCollection({
loader: file('./src/data/members.json'),
schema: z.object({
name: z.string(),
description: z.string().optional(),
roles: z.array(z.string()),
links: z.array(z.object({
name: z.string(),
icon: z.string(),
link: z.string().optional(),
})).optional(),
})
}),
groups: defineCollection({
loader: file('./src/data/groups.json'),
schema: z.object({
name: z.string(),
description: z.string().optional(),
lead: reference("members"),
subgroups: z.array(reference("groups")).optional(),
members: z.array(reference('members')).optional(),
})
}),
categories: defineCollection({
loader: file('./src/data/categories.json'),
schema: z.object({
name: z.string(),
description: z.string().optional(),
groups: z.array(reference("groups")),
videos: z.array(z.string()),
})
}),
};
And here is the frontmatter in question:
title: Tools listing
description: List of internal tools
draft: true
but it still pops up. Thoughts?