Personal blog built with Astro, deployed on Cloudflare Pages at https://jval.dev.
bun install
bun run dev # Start dev server at localhost:4321
bun run build # Build for production
bun run preview # Preview production buildCreate new posts in src/content/blog/ as .md or .mdx files:
---
title: "My Post Title"
description: "A brief description for SEO and social sharing"
pubDate: 2024-01-15
tags: ["typescript", "web"]
draft: false
# Optional: track where you've cross-posted
syndication:
twitter: "https://twitter.com/you/status/123"
linkedin: "https://linkedin.com/posts/..."
---
Your content here...- Push this repo to GitHub
- Go to Cloudflare Pages
- Connect your GitHub repo
- Settings are auto-detected (Framework: Astro, Build:
bun run build, Output:dist) - Update
astro.config.mjswith your actual domain
Your RSS feed is at /rss.xml. Use it to:
- Auto-post to Twitter/X via Zapier or IFTTT
- Syndicate to Dev.to (supports canonical URLs)
- Syndicate to Hashnode (supports canonical URLs)
- Create LinkedIn articles manually with link back
Always set canonical_url on syndicated posts pointing to your site.
The Newsletter component is a placeholder. To make it work:
- Buttondown (recommended, simple): Replace form action with your Buttondown URL
- ConvertKit: Use their embed form or API
- Substack: Link to your Substack subscribe page
bun create astro@latest -- --template blog🧑🚀 Seasoned astronaut? Delete this file. Have fun!
Features:
- ✅ Minimal styling (make it your own!)
- ✅ 100/100 Lighthouse performance
- ✅ SEO-friendly with canonical URLs and OpenGraph data
- ✅ Sitemap support
- ✅ RSS Feed support
- ✅ Markdown & MDX support
Inside of your Astro project, you'll see the following folders and files:
├── public/
├── src/
│ ├── components/
│ ├── content/
│ ├── layouts/
│ └── pages/
├── astro.config.mjs
├── README.md
├── package.json
└── tsconfig.json
Astro looks for .astro or .md files in the src/pages/ directory. Each page is exposed as a route based on its file name.
There's nothing special about src/components/, but that's where we like to put any Astro/React/Vue/Svelte/Preact components.
The src/content/ directory contains "collections" of related Markdown and MDX documents. Use getCollection() to retrieve posts from src/content/blog/, and type-check your frontmatter using an optional schema. See Astro's Content Collections docs to learn more.
Any static assets, like images, can be placed in the public/ directory.
All commands are run from the root of the project, from a terminal:
| Command | Action |
|---|---|
bun install |
Installs dependencies |
bun dev |
Starts local dev server at localhost:4321 |
bun build |
Build your production site to ./dist/ |
bun preview |
Preview your build locally, before deploying |
bun astro ... |
Run CLI commands like astro add, astro check |
bun astro -- --help |
Get help using the Astro CLI |
bun run suno-generate |
Generate songs using Suno AI from lyrics files |
Check out our documentation or jump into our Discord server.
This theme is based off of the lovely Bear Blog.