Initial commit
This commit is contained in:
18
src/content/config.ts
Normal file
18
src/content/config.ts
Normal file
@ -0,0 +1,18 @@
|
||||
import { defineCollection, z } from "astro:content"
|
||||
const projectCollection = defineCollection({
|
||||
type: "content",
|
||||
schema: ({ image }) =>
|
||||
z.object({
|
||||
title: z.string(),
|
||||
description: z.string(),
|
||||
heroImage: image(),
|
||||
heroImageAlt: z.string(),
|
||||
tags: z.array(z.string()),
|
||||
source: z.string(),
|
||||
createdAt: z.string(),
|
||||
updatedAt: z.string(),
|
||||
}),
|
||||
})
|
||||
export const collections = {
|
||||
projects: projectCollection,
|
||||
}
|
14
src/content/projects/homepage.mdx
Normal file
14
src/content/projects/homepage.mdx
Normal file
@ -0,0 +1,14 @@
|
||||
---
|
||||
title: "Hjemmeside"
|
||||
description: "Hjemmesiden"
|
||||
heroImage: "./kevin-james.jpg"
|
||||
heroImageAlt: "The homepage of this site"
|
||||
tags: [Astro, Svelte, TypeScript, I18n]
|
||||
source: "https://example.com"
|
||||
createdAt: "2024-09-22"
|
||||
updatedAt: "2024-09-22"
|
||||
---
|
||||
|
||||
This is a short meta post about the homepage of this site.
|
||||
It is a simple landing page with a short introduction to the site and a list of the latest posts.
|
||||
The site is not built with GatsbyJS and Contentful.
|
12
src/content/projects/hotelService.mdx
Normal file
12
src/content/projects/hotelService.mdx
Normal file
@ -0,0 +1,12 @@
|
||||
---
|
||||
title: "Hotel Service"
|
||||
description: "REST API for managing hotels"
|
||||
heroImage: "./kevin-james.jpg"
|
||||
heroImageAlt: "The homepage of this site"
|
||||
tags: [Rust, Axum, Postgres, REST]
|
||||
source: "https://example.com"
|
||||
createdAt: "2024-09-22"
|
||||
updatedAt: "2024-09-22"
|
||||
---
|
||||
|
||||
Hello
|
BIN
src/content/projects/kevin-james.jpg
Normal file
BIN
src/content/projects/kevin-james.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 364 KiB |
Reference in New Issue
Block a user