--- title: Why I Built My Own SSG date: 2026-01-10 tags: web, javascript, minimalism author: linuxgoose --- # Why I Built My Own SSG I wanted a blog that didn't require a complex build pipeline or a 500MB `node_modules` folder. By using **vanilla JavaScript** and **Caddy**, I created a system where the browser does the heavy lifting. ### The Technical Stack - **Engine:** Vanilla JS Router - **Parser:** [Marked.js](https://marked.js.org/) - **Server:** Caddy with SPA routing - **Metadata:** YAML-style frontmatter ### Code Example Here is how I handle the routing logic in my `index.html`: ```javascript function render() { let route = window.location.pathname; // logic to fetch and render markdown } ```