~linuxgoose/quillhut-static

ref: 2302c35d45f6638e75058e0ec2895e60e2acedd8 quillhut-static/posts/post-1.md -rw-r--r-- 722 bytes
2302c35dJordan Robinson remove click listener 8 days ago

#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
  • Server: Caddy with SPA routing
  • Metadata: YAML-style frontmatter

#Code Example

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
}