abtris / www.prskavec.net

My blog in english
https://www.prskavec.net
0 stars 0 forks source link

[hugo-updater] Update Hugo to version 0.119.0 #123

Closed abtris closed 9 months ago

abtris commented 9 months ago

[hugo-updater] Update Hugo to version 0.119.0 More details in https://github.com/gohugoio/hugo/releases/tag/v0.119.0

This version is built with Go 1.21.1 which contains some relevant security fixes for the html/template package, see Issue 62196 and Issue 62197. This is the main reason Hugo 0.119.0 is released sooner rather than later. But this release also comes with a dependency refresh and some useful image processing improvements:

Process support all of the existing scaling operations, but it can also be used do simple format conversions (e.g. from JPG to PNG). A before/after example:

{{ $watermark := resources.Get "logo.jpg" | images.Filter  
       (images.GaussianBlur 6) 
       (images.Opacity 0.5) 
}}
{{ $watermark = $watermark.Resize (printf "%dx%d png" $watermark.Width $watermark.Height )

There are some issues with the above:

  1. The source image does not support transparency, so the transparency pixels will be filled with the configured background colour.
  2. The image will be decoded and encoded twice with a potential loss in quality.
  3. It's clumsy.

With Hugo 0.119.0 the above can be written as:

{{ $watermark := resources.Get "logo.jpg" | images.Filter  
       (images.GaussianBlur 6) 
       (images.Opacity 0.5) 
       (images.Process "png") 
}}

Bug fixes

Improvements

Dependency Updates

Documentation

netlify[bot] commented 9 months ago

Deploy Preview for house-keeper-proficiencies-68654 ready!

Name Link
Latest commit 104b568f40554ae1bafdb19b85dad43833804522
Latest deploy log https://app.netlify.com/sites/house-keeper-proficiencies-68654/deploys/651192f26fd5ae0008d0b36f
Deploy Preview https://deploy-preview-123--house-keeper-proficiencies-68654.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.