From cb229426184dc22a2c08992e54723ed1023bcd32 Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Sun, 10 Nov 2024 14:24:12 +0200 Subject: Committing in case I fuck up smthing --- src/components/Prose.astro | 8 ++++++ src/content/blogs/blog-1.md | 51 +++++++++++++++++++++++++++++++++++++ src/content/blogs/blog-2.md | 15 +++++++++++ src/layouts/MarkdownLayout.astro | 53 +++++++++++++++++++++++++++++++++++++++ src/pages/.test.astro.swp | Bin 0 -> 12288 bytes src/pages/test.astro | 13 ++++++++++ src/pages/test.md | 30 ---------------------- 7 files changed, 140 insertions(+), 30 deletions(-) create mode 100644 src/components/Prose.astro create mode 100644 src/content/blogs/blog-1.md create mode 100644 src/content/blogs/blog-2.md create mode 100644 src/layouts/MarkdownLayout.astro create mode 100644 src/pages/.test.astro.swp create mode 100644 src/pages/test.astro delete mode 100644 src/pages/test.md (limited to 'src') diff --git a/src/components/Prose.astro b/src/components/Prose.astro new file mode 100644 index 0000000..d1aa1c4 --- /dev/null +++ b/src/components/Prose.astro @@ -0,0 +1,8 @@ +--- +--- +
+ +
diff --git a/src/content/blogs/blog-1.md b/src/content/blogs/blog-1.md new file mode 100644 index 0000000..ca2e3f1 --- /dev/null +++ b/src/content/blogs/blog-1.md @@ -0,0 +1,51 @@ +# My Title + +## Secondary + +Testing some content with multiline thing +let's see what happens if this wraps +This should be super close + +This should be far + +- Some bullets +- Adka kda kd ak +- d kakd akd ka k + +- [ ] Check me +- [x] Already checked + +## Smaller header + +How about code blocks + +```go example.go +package main + +import "fmt" + +func main() { + fmt.Println("Hello, World!") +} +``` + +Hmm + +> ![INFO] +> Does this work + +This is `highlighting` I think is what it's called + +:::caution +If you are not sure you want an awesome docs site, think twice before using [Starlight](/). +::: + +:::danger +Your users may be more productive and find your product easier to use thanks to helpful Starlight features. + +- Clear navigation +- User-configurable colour theme +- [i18n support](/guides/i18n/) + +::: + diff --git a/src/content/blogs/blog-2.md b/src/content/blogs/blog-2.md new file mode 100644 index 0000000..0296fe2 --- /dev/null +++ b/src/content/blogs/blog-2.md @@ -0,0 +1,15 @@ +# Other blog + +How about code blocks + +```go example.go +package main + +import "fmt" + +func main() { + fmt.Println("Hello, World!") +} +``` + +adkadkakdakd diff --git a/src/layouts/MarkdownLayout.astro b/src/layouts/MarkdownLayout.astro new file mode 100644 index 0000000..becb8e9 --- /dev/null +++ b/src/layouts/MarkdownLayout.astro @@ -0,0 +1,53 @@ +--- +interface Props { + title: string; +} + +const { title } = Astro.props; +--- + + + + + + + + + + + {title} + + + + + + diff --git a/src/pages/.test.astro.swp b/src/pages/.test.astro.swp new file mode 100644 index 0000000..96ddfdf Binary files /dev/null and b/src/pages/.test.astro.swp differ diff --git a/src/pages/test.astro b/src/pages/test.astro new file mode 100644 index 0000000..af39d74 --- /dev/null +++ b/src/pages/test.astro @@ -0,0 +1,13 @@ +--- +import Prose from '../components/Prose.astro'; +import MarkdownLayout from '../layouts/MarkdownLayout.astro'; +import { getEntry } from 'astro:content'; + +const entry = await getEntry('blogs', 'blog-1'); +const { Content } = await entry.render(); +--- + + + + + diff --git a/src/pages/test.md b/src/pages/test.md deleted file mode 100644 index 1f0c54c..0000000 --- a/src/pages/test.md +++ /dev/null @@ -1,30 +0,0 @@ -# My Title - -Testing some content with multiline thing -let's see what happens if this wraps -This should be super close - -This should be far - -- Some bullets -- Adka kda kd ak -- d kakd akd ka k - -- [ ] Check me -- [x] Already checked - -## Smaller header - -How about code blocks - -```go -package main - -import "fmt" - -func main() { - fmt.Println("Hello, World!") -} -``` - -Hmm -- cgit v1.3.1