Hugo 0.104.0 Released

5 Likes

Does this work with brew upgrade hugo yet. My update still says Warning: hugo 0.103.1 already installed

Not in Homebrew yet. That’ll be noted in a separate post in this thread. Usually takes a few hours (sometimes a day).

You can pull down the binaries now if you’re willing to install that way, however.

That $image.Colors stuff is a really cool addition for low-quality image placeholders (LQIPs). I’ve often done them by doing a resize to 20 pixels and then base64Encode-ing them, but this makes it a lot simpler and, I’d assume, provides slightly better performance:

// where $src is the base image...
{{- $LQIP_colors := $src.Colors -}}
{{- if (lt ($LQIP_colors | len) 2) -}}
  {{- $LQIP_colors = $LQIP_colors | append "#000000" -}}
  {{/* to make sure it has at least two entries */}}
{{- end -}}
{{- $LQIP_bkgd := delimit ($LQIP_colors) ", " -}}
{{- $LQIPstyle := print "background: linear-gradient(" $LQIP_bkgd "); background-size: cover; background-repeat: no-repeat;" -}}

In the example I link to I do both. Having a 20px give a much better preview, but having a gradient background that matches makes it pop up instantly.

2 Likes

Yes, that was a very helpful example.

A post was split to a new topic: CSP policy that uses nonce with unsafe inlines with Netlify

It is on his way … stay tuned

1 Like

Hugo 0.104.0 packages

Brew - Hugo Brew package for macOS and Linux - updated :white_check_mark:
Snap Package - Hugo Snap (Snapcraft) package for Linux

  • traditional release - updated :white_check_mark:
  • extended release - updated :white_check_mark:

Docker/CI Image - Hugo Docker image for Continuous Integration - updated :white_check_mark:
Docker Image - klakegg/hugo - Other Hugo Docker image - updated :white_check_mark:
Debian (sid) - updated :white_check_mark: (Track link)
Ubuntu (hirsute) - not yet updated :x: (Track link )
Fedora Copr - Hugo RPM package for Fedora and CentOS - updated :white_check_mark:
Chocolatey Package - Hugo Chocolatey package for Windows

5 Likes

Done. You can upgrade thru brew

5 Likes