mirror of
https://github.com/Fluffy-Bean/website.git
synced 2025-05-29 14:53:16 +00:00
Post, Project and index pages
Example posts
This commit is contained in:
parent
5970f11bcc
commit
d3dafddf74
21 changed files with 625 additions and 168 deletions
28
src/content/content.ts
Normal file
28
src/content/content.ts
Normal file
|
@ -0,0 +1,28 @@
|
|||
import { z, defineCollection } from 'astro:content';
|
||||
|
||||
|
||||
const postsCollection = defineCollection({
|
||||
type: "content",
|
||||
schema: z.object({
|
||||
title: z.string(),
|
||||
description: z.string(),
|
||||
pubDate: z.date(),
|
||||
image: z.string().optional(),
|
||||
tags: z.array(z.string()),
|
||||
}),
|
||||
});
|
||||
|
||||
const projectsCollection = defineCollection({
|
||||
type: "content",
|
||||
schema: z.object({
|
||||
title: z.string(),
|
||||
description: z.string(),
|
||||
image: z.string().optional(),
|
||||
tags: z.array(z.string()),
|
||||
}),
|
||||
});
|
||||
|
||||
export const collections = {
|
||||
"posts": postsCollection,
|
||||
"projects": projectsCollection,
|
||||
};
|
17
src/content/posts/example.md
Normal file
17
src/content/posts/example.md
Normal file
|
@ -0,0 +1,17 @@
|
|||
---
|
||||
layout: ../../layouts/Markdown.astro
|
||||
|
||||
title: This is an example Post
|
||||
description: "Blamby ford"
|
||||
pubDate: 2022-07-08
|
||||
image:
|
||||
url: "https://docs.astro.build/assets/arc.webp"
|
||||
alt: "Thumbnail of Astro arcs."
|
||||
tags:
|
||||
- "GwaGwa"
|
||||
- "Gaming"
|
||||
- "Urchin"
|
||||
- "Fortnite"
|
||||
---
|
||||
|
||||
Gay Balls even
|
16
src/content/projects/example-2.md
Normal file
16
src/content/projects/example-2.md
Normal file
|
@ -0,0 +1,16 @@
|
|||
---
|
||||
layout: ../../layouts/Markdown.astro
|
||||
|
||||
title: Project 2
|
||||
description: Another one
|
||||
image:
|
||||
url: "https://docs.astro.build/assets/arc.webp"
|
||||
alt: "Thumbnail of Astro arcs."
|
||||
tags:
|
||||
- "GwaGwa"
|
||||
- "Gaming"
|
||||
- "Urchin"
|
||||
- "Fortnite"
|
||||
---
|
||||
|
||||
AURGH
|
16
src/content/projects/example.md
Normal file
16
src/content/projects/example.md
Normal file
|
@ -0,0 +1,16 @@
|
|||
---
|
||||
layout: ../../layouts/Markdown.astro
|
||||
|
||||
title: Project 1
|
||||
description: Example Project Im working on
|
||||
image:
|
||||
url: "https://docs.astro.build/assets/arc.webp"
|
||||
alt: "Thumbnail of Astro arcs."
|
||||
tags:
|
||||
- "GwaGwa"
|
||||
- "Gaming"
|
||||
- "Urchin"
|
||||
- "Fortnite"
|
||||
---
|
||||
|
||||
Gay Balls even
|
16
src/content/projects/gwagwa.md
Normal file
16
src/content/projects/gwagwa.md
Normal file
|
@ -0,0 +1,16 @@
|
|||
---
|
||||
layout: ../../layouts/Markdown.astro
|
||||
|
||||
title: GwaGwa
|
||||
description: :3
|
||||
image:
|
||||
url: "https://docs.astro.build/assets/arc.webp"
|
||||
alt: "Thumbnail of Astro arcs."
|
||||
tags:
|
||||
- "GwaGwa"
|
||||
- "Gaming"
|
||||
- "Urchin"
|
||||
- "Fortnite"
|
||||
---
|
||||
|
||||
gwagwa
|
Loading…
Add table
Add a link
Reference in a new issue