What you'll build
Your own static blog with Astro. You'll be able to write posts in Markdown, have a main page with articles sorted by date, and individual pages for each post. The site will be ultra fast, secure, and free to host on Vercel or GitHub Pages. It's the perfect way to document what you learn and build your online presence.
Popular options
| Tool | Language | Ideal for |
|---|---|---|
| Astro | JS | Content + components |
| Hugo | Go | Extreme speed |
| Jekyll | Ruby | Native GitHub Pages |
| 11ty | JS | Simplicity |
Step 1: Ask an AI for the setup
I need a static blog with Astro that:
- Has posts in Markdown
- Shows list of posts with date
- Has individual page per post
- Uses Tailwind CSS
- Has dark mode
- Is deployable on Vercel
Give me the commands and structure.
Step 2: Create the project
npm create astro@latest my-blog
cd my-blog
npm run dev
Typical structure
my-blog/
โโโ src/
โ โโโ content/
โ โ โโโ posts/
โ โ โโโ first-post.md
โ โ โโโ second-post.md
โ โโโ layouts/
โ โ โโโ PostLayout.astro
โ โโโ pages/
โ โโโ index.astro
โ โโโ posts/[slug].astro
โโโ astro.config.mjs
Post format
---
title: "My first post"
date: 2024-01-15
description: "What I learned today"
tags: ["javascript", "learning"]
---
# My first post
Content in **Markdown**...
Publish
# Vercel (automatic from GitHub)
npm run build
# Push to GitHub, connect with Vercel
Next step
โ Form with Validation โ Secure inputs