Updated git url.
Added various icons. Started adding hardwarePage content Signed-off-by: Martin Berg Alstad <git@martials.no>
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
import { defineCollection, z } from "astro:content"
|
||||
|
||||
const projectCollection = defineCollection({
|
||||
type: "content",
|
||||
schema: ({ image }) =>
|
||||
@ -10,9 +11,19 @@ const projectCollection = defineCollection({
|
||||
tags: z.array(z.string()),
|
||||
source: z.string(),
|
||||
createdAt: z.string(),
|
||||
updatedAt: z.string(),
|
||||
}),
|
||||
updatedAt: z.string()
|
||||
})
|
||||
})
|
||||
|
||||
const hardwareCollection = defineCollection({
|
||||
type: "data",
|
||||
schema: z.object({
|
||||
accessories: z.optional(z.array(z.string())),
|
||||
hardware: z.array(z.string())
|
||||
})
|
||||
})
|
||||
|
||||
export const collections = {
|
||||
projects: projectCollection,
|
||||
hardware: hardwareCollection
|
||||
}
|
||||
|
4
src/content/hardware/desktop.yaml
Normal file
4
src/content/hardware/desktop.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
accessories:
|
||||
- a # Screens, keyboards, mice, etc.
|
||||
hardware:
|
||||
- b # Graphics cards, CPUs, etc.
|
2
src/content/hardware/homeServer.yaml
Normal file
2
src/content/hardware/homeServer.yaml
Normal file
@ -0,0 +1,2 @@
|
||||
hardware:
|
||||
- b # Graphics cards, CPUs, etc.
|
4
src/content/hardware/raspberryPi.yaml
Normal file
4
src/content/hardware/raspberryPi.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
accessories:
|
||||
- a # Screens, keyboards, mice, etc.
|
||||
hardware:
|
||||
- b # Graphics cards, CPUs, etc.
|
Reference in New Issue
Block a user