A battle-tested, feature-rich blog theme powered by Astro v6
Tip
Been building my blog for years — so I turned it into an open-source theme.
You might be intrested in building personal site too, Check out Letter Portfolio theme!
Start your online posts or shortposts through fully typed markdown and settings. Check out the GitHub Pages Demo.
- Optimize for speed (100% lighthouse score)
- Responsive & SEO-friendly
- Built-in i18n
- content
- Open Graph image generation through vercel/og with cache
- Page search through Pagefind
- Google Analytic
- Beautiful code block & Mermaid diagram using expressive-code and remark-mermaid
- CI pipeline (TypeScript / Biome linter / Cypress E2E testing / Lighthouse)
- CD pipeline (Cloudflare Pages or GitHub Pages)
# 1. Clone the repository
git clone https://github.com/riceball-tw/letter.git .
# 2. Install dependencies
pnpm install
# 3. Run development server
pnpm run dev# a. Locally
# Deploy the contents of the `./dist` folder wherever you like.
pnpm install
pnpm build
pnpm preview
# b. Build docker image
docker build -t <your-astro-image-name> .
docker run -p <local-port>:<container-port> <your-astro-image-name>astro.config.mjs: Astro configssite: Your final, deployed URL
/src/content: Site config, posts, shortposts (Markdown / MDX)/src/i18n: Translations used in astro templates/public: Assets used in the site (favicon, og image)/src/assets: Assets used in the site (logo, logomark)/src/styles/global.css: Styles/.github/workflows/testing-and-deploy-pipeline.yml: GitHub CI/CD pipeline (setup.envbase on.env.example)
For questions or support, please open an issue on GitHub.
MIT