Welcome to My Blog
· Your Name 2 min read
Welcome to my new blog! This is a sample post to get you started.
Why Astro?
Astro is an amazing framework for building content-focused websites. Here are some reasons why:
- Performance: Astro ships zero JavaScript by default
- Flexibility: Use any UI framework you want
- Content-focused: Built-in support for Markdown and MDX
- Developer Experience: Amazing DX with hot module reloading
Here’s a simple example of using Astro components:
---
import Layout from '../layouts/Layout.astro';
import Card from '../components/Card.astro';
const title = "My Astro Site";
---
<Layout title={title}>
<main>
<h1>Welcome to {title}</h1>
<Card
title="Getting Started"
body="Create your first Astro site!"
href="/docs/getting-started"
/>
</main>
</Layout>
What’s Next?
Start writing your own blog posts! Just create new .md or .mdx files in the src/content/blog directory.