github gohugoio/hugo v0.90.0

latest releases: v0.138.0, v0.137.1, v0.137.0...
2 years ago

Hugo 0.90 finally brings remote support to resources.Get, XML support (in /data and transform.Unmarshal), and a new images.Text filter. A special shoutout and thanks to @vanbroup for his work on these features.

The support for remote Resources in resources.Get has been a feature in great demand. This means that you can fetch remote files (images, JSON files, RSS feeds ...) and use them in Hugo Pipes functions as they were local. A contrived example may look like this:

{{ $font := resources.Get "https://github.com/google/fonts/raw/main/apache/roboto/static/Roboto-Black.ttf" }}
{{ $img := resources.Get "https://gohugo.io/images/gohugoio-card-1.png" }}
{{ $img = $img | images.Filter (images.Text 
                        "Rocks!" 
                        (dict 
                            "color" "#E6B405" 
                            "size" 100
                            "lineSpacing" 8 
                            "x" 400 "y" 320
                            "font" $font))
                     
}}
<img src="{{ $img.RelPermalink }}" />

The above fetches both a font and an image remotely and then uses the new images.Text filter to overlay a text on top of the image.

Numbers

This release represents 58 contributions by 6 contributors to the main Hugo code base.@bep leads the Hugo development with a significant amount of contributions, but also a big shoutout to @jmooring, @vanbroup, and @dependabot[bot] for their ongoing contributions.

And thanks to @digitalcraftsman for his ongoing work on keeping the themes site in pristine condition.

Many have also been busy writing and fixing the documentation in hugoDocs, which has received 17 contributions by 6 contributors. A special thanks to @jmooring, @bep, @santosh, and @coliff for their work on the documentation site.

Hugo now has:

Notes

  • deps: Upgrade github.com/evanw/esbuild v0.13.12 => v0.14.2 (note) b4f27ef @bep #9244

Changes

Don't miss a new hugo release

NewReleases is sending notifications on new releases.