Personal blog built with Astro and deployed to GitHub Pages.
# Install dependencies
npm install
# Start dev server
npm run dev
# Build for production
npm run build
# Preview production build
npm run previewCreate a new markdown file in src/content/blog/ with this structure:
---
title: "Your Post Title"
description: "Brief description for previews"
pubDate: 2025-09-29
tags: ["tag1", "tag2"]
---
Your content here...This site auto-deploys to GitHub Pages on push to main.
- Go to your repo Settings → Pages
- Source: "GitHub Actions"
- Push to
mainbranch
- Add a
CNAMEfile to/public/with your domain - Configure DNS:
- Add A records pointing to GitHub's IPs
- Or add CNAME record pointing to
yourusername.github.io
- In repo Settings → Pages, add your custom domain
- Astro - Static site generator
- Markdown/MDX - Content format
- GitHub Pages - Hosting
- GitHub Actions - CI/CD