Lightweight self-hosted personal blog and bio site built with Astro, TypeScript, Markdown/MDX, and plain CSS.
Install dependencies:
npm installRun the local dev server:
npm run devBuild the static site:
npm run buildBuild the image:
docker build -t byah-site .Run the container:
docker run --rm -p 8080:80 byah-siteAdd a new blog post:
- Create
src/content/blog/my-post.mdorsrc/content/blog/my-post.mdx. - Add
title,date,summary,tags, anddraftin frontmatter.
Add a new project:
- Create
src/content/projects/my-project.md. - Add
title,status,summary,stack,links, andfeaturedin frontmatter.
Add a new link:
- Create
src/content/links/my-link.json. - Add
title,url,date,tags, andnote.
- Update
src/site.config.tsto change the site title, author, description, base URL, accent color, email, and GitHub link. - RSS is generated at
/rss.xml. - Draft blog posts are excluded from generated blog pages and indexes.