Updated to Astro v5 beta.
All checks were successful
Build and deploy website / build (push) Successful in 1m56s
All checks were successful
Build and deploy website / build (push) Successful in 1m56s
Created a new component for a collapsable list Implemented some of the new features. - astro:env - New astro content layer Signed-off-by: Martin Berg Alstad <git@martials.no>
This commit is contained in:
@ -1,7 +1,8 @@
|
||||
import { defineCollection, z } from "astro:content"
|
||||
import { glob } from "astro/loaders"
|
||||
|
||||
const projectCollection = defineCollection({
|
||||
type: "content",
|
||||
loader: glob({ pattern: "**\/*.mdx", base: "./src/content/projects" }),
|
||||
schema: ({ image }) =>
|
||||
z.object({
|
||||
title: z.string(),
|
||||
@ -16,7 +17,7 @@ const projectCollection = defineCollection({
|
||||
})
|
||||
|
||||
const hardwareCollection = defineCollection({
|
||||
type: "data",
|
||||
loader: glob({ pattern: "**\/*.yaml", base: "./src/content/hardware" }),
|
||||
schema: z.object({
|
||||
title: z.string(),
|
||||
accessories: z.optional(z.array(z.string())),
|
||||
|
Reference in New Issue
Block a user