Notes on Setting Up a Minimalist, Zero-JS Static Technical Blog
After maintaining WordPress and database-backed blogging engines for years, I finally moved all personal technical notes to pure static HTML served directly by Nginx. There is no admin login, no PHP runtime, no database credentials, and zero client-side JavaScript.
Why Zero-JS and Strict Security Headers
- Zero dynamic attack surface: without server-side interpreters or forms, entire vulnerability classes (SQL injection, RCE, auth bypass, plugin supply-chain attacks) simply do not exist.
- Instant page loads: every article weighs under 12 KB uncompressed, renders immediately using native system fonts, and honors OS light/dark mode via
prefers-color-scheme. - Lock-tight CSP: with zero scripts and no external CDNs, Nginx can ship
Content-Security-Policy: default-src 'none'; style-src 'self'; img-src 'self' data:.
Everything in this site is generated from a single script into immutable read-only files under /var/www/blog. Simple tools age far better than clever ones.