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.
Here is how I handle the routing logic in my index.html:
function render() {
let route = window.location.pathname;
// logic to fetch and render markdown
}