This is the source code for my minimalist, fast, and zero-cost personal blog, built with a focus on performance and simplicity.
- Static Site Generation: All pages are pre-built for maximum performance.
- Markdown-based: Content is written in Markdown with YAML frontmatter.
- Dark Mode: Theme support for light and dark modes.
- Client-side Search: A lightweight search index for finding articles.
- Zero-Cost Hosting: Deployed on Cloudflare's free tier.
- Runtime: Bun
- Deployment: Cloudflare Workers & Pages
- Framework: Hono (for setting headers)
- Markdown Parsing:
marked - Syntax Highlighting:
highlight.js - Styling: Vanilla CSS, no frameworks.
-
Clone the repository:
git clone https://github.com/FumingPower3925/albertbf.git cd albertbf -
Install dependencies:
bun install
-
Run the development server: This will start a local server with live-reloading.
bun run dev
To build the static site for production:
bun run buildThe output will be in the ./dist directory.
The project is deployed to Cloudflare Workers. The wrangler.toml file contains the configuration.
To deploy, run:
bun run deploy