Personal blog and portfolio website built with Hugo and deployed to Cloudflare Workers.
This is a Bun monorepo containing:
- services/www - Hugo static website using custom terminal theme
- services/api - Cloudflare Worker for contact form emails
# Install dependencies
bun install
# Set up the local environment (Turnstile test keys that always pass)
cp .env.example .env.local
# Start development server
bun run dev
# Build for production
bun run build- mise - Tool version manager (installs correct Bun and Hugo versions from
.mise.toml)
Or install Bun and Hugo Extended
manually, at the versions pinned in .mise.toml — that file is
the single source of truth and the only place versions should be edited.
| Command | Description |
|---|---|
bun run dev |
Start Hugo development server |
bun run dev:api |
Start the API Worker locally |
bun run build |
Build Hugo site for production |
bun run lint |
Run oxlint linter |
Both services read a single gitignored .env.local at the repository root:
cp .env.example .env.localThe committed defaults work as-is for contact-form development: the form posts
to the local API Worker (bun run dev:api), and the Turnstile widget uses
Cloudflare's public test keys, which always pass. The production keys are
hostname-bound and do not render on localhost. Add RESEND_API_KEY,
TO_EMAIL and FROM_EMAIL only when a submission should actually send email.
All Hugo commands should be run from services/www/:
cd services/www
# Create a regular blog post (page bundle with images/ directory)
hugo new posts/name-of-a-post
# Create a learning log post (page bundle with images/ directory)
hugo new ever-learning/name-of-a-post| Type | Directory | Archetype |
|---|---|---|
| Blog posts | posts/ |
default |
| Learning log | ever-learning/ |
ever-learning |
See docs/deployment.md for complete deployment instructions.
- Configure GitHub secrets (
CLOUDFLARE_API_TOKEN) - Configure GitHub variables (
CLOUDFLARE_ACCOUNT_ID) - Set up Cloudflare Turnstile for contact form
- Set up Resend for email delivery
- Set the per-environment variables and secrets — see docs/deployment.md
- Push to
masterbranch to trigger deployment
- Deployment Guide - Full deployment setup
- Architecture Decision Records - Project decisions
All rights reserved.