Move posts out of src

This commit is contained in:
Cassidy Williams
2024-12-14 10:26:22 -06:00
parent 1d5278e6a2
commit 8230e397ba
7 changed files with 6 additions and 6 deletions

View File

@@ -3,7 +3,7 @@ import { defineCollection, z } from "astro:content";
import { glob } from "astro/loaders";
const posts = defineCollection({
loader: glob({ pattern: "*.md", base: "./src/posts" }),
loader: glob({ pattern: "*.md", base: "./posts" }),
schema: z.object({
title: z.string(),
slug: z.string(),

View File

@@ -1,11 +0,0 @@
---
title: Hello, world!
slug: hello-world
description: >-
This is an example blog!
tags:
- personal
added: "May 01 2024"
---
This is an example blog post!

View File

@@ -1,104 +0,0 @@
---
title: Markdown Example
slug: markdown
description: >-
Check out how markdown is rendered!
tags:
- technical
added: "May 09 2024"
---
This is an example blog post!
# Heading 1
This is an example lil thingy wow look at me!
## Heading 2
### Heading 3
#### Heading 4
##### Heading 5
###### Heading 6
I'm baby tumblr deep v franzen [umami hammock](https://google.com) scenester retro VHS, pop-up truffaut tacos polaroid gochujang. Jean ugh _vexillologist snackwave keytar williamsburg bitters pinterest_. Photo booth schlitz quinoa tbh edison bulb vexillologist occupy single-origin dreamcatcher. **Chartreuse meggings gochujang synth.** Narwhal green juice snackwave thundercats kickstarter XOXO deep v.
1. numbered
2. list
3. of
4. items
Hello there, welcome to my list.
- list
- of
- items
- nested
- list
- wow
## Hello, babies, I think that you need to understand what a long line length is
V franzen umami hammock scenester retro VHS, pop-up truffaut tacos polaroid heirloom gochujang.
- [x] hello
- [ ] these
- [x] are
- [ ] tasks
**bold** _italic_
**_bold and italic_**
```js
// This is an example of some React
useEffect(() => {
let isCurrent = true;
if (isCurrent === true) {
fetch("...");
}
return () => {
isCurrent = false;
};
}, []);
```
Language-less:
```
useEffect(() => { // wow
let isCurrent = true;
if (isCurrent === true) {
fetch('...')
}
return () => {
isCurrent = false;
}
}, [])
```
A horizontal line:
---
Some inline `code` between normal text
> A blockquote, lorem ipsum dolor
Just some normal text, wow.
---
| Example table | Example things |
| ------------- | -------------- |
| What | how |
| Why | when |
Okay, that's it! Good luck! Write more! Follow your dreams!