feat: some shit
This commit is contained in:
7
src/content/blog/post-01/index.en.md
Normal file
7
src/content/blog/post-01/index.en.md
Normal file
@ -0,0 +1,7 @@
|
||||
---
|
||||
date: 2021-01-01
|
||||
author: MaxEN
|
||||
title: "First Post"
|
||||
---
|
||||
|
||||
# First Post
|
7
src/content/blog/post-01/index.md
Normal file
7
src/content/blog/post-01/index.md
Normal file
@ -0,0 +1,7 @@
|
||||
---
|
||||
date: 2021-01-01
|
||||
author: MaxDE
|
||||
title: "Erster Post"
|
||||
---
|
||||
|
||||
# Erster post
|
7
src/content/blog/post-02/index.en.md
Normal file
7
src/content/blog/post-02/index.en.md
Normal file
@ -0,0 +1,7 @@
|
||||
---
|
||||
date: 2021-01-01
|
||||
author: MaxEN
|
||||
title: "Second Post"
|
||||
---
|
||||
|
||||
# 2. post
|
7
src/content/blog/post-02/index.md
Normal file
7
src/content/blog/post-02/index.md
Normal file
@ -0,0 +1,7 @@
|
||||
---
|
||||
date: 2021-01-01
|
||||
author: MaxDE
|
||||
title: "Zweiter Post"
|
||||
---
|
||||
|
||||
# 2. post
|
7
src/content/blog/post-03/index.en.md
Normal file
7
src/content/blog/post-03/index.en.md
Normal file
@ -0,0 +1,7 @@
|
||||
---
|
||||
date: 2021-01-01
|
||||
author: MaxEN
|
||||
title: "Third Post"
|
||||
---
|
||||
|
||||
# Third Post
|
7
src/content/blog/post-03/index.md
Normal file
7
src/content/blog/post-03/index.md
Normal file
@ -0,0 +1,7 @@
|
||||
---
|
||||
date: 2021-01-01
|
||||
author: MaxDE
|
||||
title: "Dritter Post"
|
||||
---
|
||||
|
||||
# Dritter Post
|
13
src/content/config.ts
Normal file
13
src/content/config.ts
Normal file
@ -0,0 +1,13 @@
|
||||
import { defineCollection, z } from 'astro:content';
|
||||
|
||||
const blogCollection = defineCollection({
|
||||
schema: z.object({
|
||||
title: z.string(),
|
||||
author: z.string(),
|
||||
date: z.date()
|
||||
})
|
||||
});
|
||||
|
||||
export const collections = {
|
||||
'blog': blogCollection
|
||||
};
|
Reference in New Issue
Block a user