This website runs on Hugo and is hosted via Cloudflare Pages. The last time I wrote a post and updated this site was almost an year ago. Since then, I have been busy with the book, that I rarely got time to update this site.

The book’s done, I now have time to get back to writing and maintaining this site. The first thing I had to do was to upgrade the site.

Local upgrade

I run a local version of Hugo to test out changes before publishing it. When I started the hugo developoment server hugo server -D, I got this error,

1
2
23:13:13.518	ERROR => hugo v0.146.0 or greater is required for hugo-PaperMod to build
23:13:13.554	ERROR render of "page" failed: "<--path-->/themes/papermod/layouts/_default/baseof.html:9:8": execute of template failed: template: _default/single.html:9:8: executing "_default/single.html" at <partial "head.html" .>: error calling partial: "<--path-->/themes/papermod/layouts/partials/head.html:153:4": execute of template failed: template: partials/head.html:153:4: executing "partials/head.html" at <partial "google_analytics.html" .>: error calling partial: partial "google_analytics.html" not found

To fix the error, I had to upgrade hugo with brew upgrade hugo.

Server upgrade

Since I host this on Cloudflare Pages, I had to set the environment variable to upgrade Hugo.

Steps

  1. Login to Cloudflare and go to Worker & Pages
  2. Select your deployment
  3. Go to Settings
  4. Under Variables and Secrets, add a new Text variable
Setting Cloudflare variable

Setting Cloudflare variable

  1. Retry the deployment.

./J