Welcome to Danniverse ݁ Λ–πŸͺ.π–₯”Λš

Build and host Danniverse site with Hugo on Cloudflare Pages

Welcome to the meta post about this very website you’re reading! I recently built and deployed my personal site – Danniverse! I wanted to share the process and why I chose this particular tech stack.

Why Hugo?

When deciding on a static site generator, I had a few requirements:

Hugo checked all these boxes. Plus, it’s written in Go, which means it’s blazingly fast (I don’t know much about Go. Maybe I should add it into my bucket list?).

Setting Up Hugo

The initial setup was straightforward: Quick start

I really like the blogging platform – Κ•β€’α΄₯β€’Κ” Bear for its clean and minimal style. I choose self-hosting at the cost of leaving Bear’s platform for customizing my site as I want. I went with hugo-bearneo by Rokcso because it’s Bear blog based but more extensible and feature-rich. On top of that, I added the pinky bd-bear-theme by binarydigitlol because it feels like my vibe too :)

Deploying with Cloudflare Pages

For hosting, I chose Cloudflare Pages over other options like Netlify or GitHub Pages because:

The deployment process is incredibly simple:

  1. Push my Hugo site code to a GitHub repo
  2. Connect the repo to Cloudflare Pages
  3. Configure the build command (hugo) and output directory (public). The public/ folder should be gitignored since it’s generated. For proper linking and deployment, setting a specific Hugo version by adding it as an env var is highly recommended.
  4. Cloudflare automatically builds and deploys on every push

Some take-aways

A few things I picked up along the way:

#Hugo #Cloudflare #Danniverse #Milestone