~linuxgoose/quillhut-static

ref: 3f8a9fe27a6278413663010a89e6e1e4e1088532 quillhut-static/posts/post-1.md -rw-r--r-- 722 bytes
3f8a9fe2Jordan Robinson update README 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
}