chore(deps): update dependency gohugoio/hugo to v0.90.1 #26

Merged
xoxys merged 1 commits from renovate/gohugoio-hugo-0.x into main 2021-12-16 11:44:44 +00:00
Member

This PR contains the following updates:

Package Update Change
gohugoio/hugo minor v0.89.4 -> v0.90.1

Release Notes

gohugoio/hugo

v0.90.1

Compare Source

This release contains some fixes and improvements related to error handling in remote lookups in resources.Get, as introduced in Hugo 0.90.0:

  • Now we will always return nil (never fail the build) when a resource is not found, also for remote resources (HTTP status code 404). This means that you can do {{ with $img }}{{ else }}{{/* insert a default image or something */}}{{ end }} and similar constructs, not having to consider where the resource source lives.
  • Fetching resources remotely over HTTPS has a much greater chance of failing (network down, server down) than reading a file from disk (if not already cached). And having this lead to a failing build is not always optimal. This release allows you to handle/ignore these errors in the templates if needed, see details below.

The return value from resources.Get now includes an .Err method that will be set if the call failed. If you want to just log any error as a WARNING you can use a construct similar to the one below.

{{ with resources.Get "https://gohugo.io/images/gohugoio-card-1.png" }}
  {{ with .Err }}
    {{ warnf "%s" . }}
  {{ else }}
    <img src="{{ .RelPermalink }}" width="{{ .Width }}" height="{{ .Height }}" alt="">
  {{ end }}
{{ end }}

Note that if you do not handle .Err yourself, Hugo will fail the build the first time you start using the failed Resource object.

Changes

v0.90.0

Compare Source

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

Changes


Configuration

📅 Schedule: At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, click this checkbox.

This PR has been generated by Renovate Bot.

This PR contains the following updates: | Package | Update | Change | |---|---|---| | [gohugoio/hugo](https://github.com/gohugoio/hugo) | minor | `v0.89.4` -> `v0.90.1` | --- ### Release Notes <details> <summary>gohugoio/hugo</summary> ### [`v0.90.1`](https://github.com/gohugoio/hugo/releases/v0.90.1) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.90.0...v0.90.1) This release contains some fixes and improvements related to error handling in remote lookups in `resources.Get`, as introduced in Hugo 0.90.0: - Now we will always return `nil` (never fail the build) when a *resource is not found*, also for remote resources (HTTP status code 404). This means that you can do `{{ with $img }}{{ else }}{{/* insert a default image or something */}}{{ end }}` and similar constructs, not having to consider where the resource source lives. - Fetching resources remotely over HTTPS has a much greater chance of failing (network down, server down) than reading a file from disk (if not already [cached](https://gohugo.io/getting-started/configuration/#configure-file-caches)). And having this lead to a failing build is not always optimal. This release allows you to handle/ignore these errors in the templates if needed, see details below. The return value from `resources.Get` now includes an `.Err` method that will be set if the call failed. If you want to just log any error as a `WARNING` you can use a construct similar to the one below. ```htmlbars {{ with resources.Get "https://gohugo.io/images/gohugoio-card-1.png" }} {{ with .Err }} {{ warnf "%s" . }} {{ else }} <img src="{{ .RelPermalink }}" width="{{ .Width }}" height="{{ .Height }}" alt=""> {{ end }} {{ end }} ``` Note that if you do not handle `.Err` yourself, Hugo will fail the build the first time you start using the failed `Resource` object. #### Changes - Remove the retries on error in remote resources.Get [`3bc6830`](https://github.com/gohugoio/hugo/commit/3bc68304) [@&#8203;bep](https://github.com/bep) [#&#8203;9271](https://github.com/gohugoio/hugo/issues/9271) - Allow user to handle/ignore errors in resources.Get [`e4d6ec9`](https://github.com/gohugoio/hugo/commit/e4d6ec94) [@&#8203;bep](https://github.com/bep) [#&#8203;9259](https://github.com/gohugoio/hugo/issues/9259) - Make resource.Get return nil on 404 not found [`6260455`](https://github.com/gohugoio/hugo/commit/6260455b) [@&#8203;bep](https://github.com/bep) [#&#8203;9267](https://github.com/gohugoio/hugo/issues/9267) - Update to Go 1.17.5 [`c397975`](https://github.com/gohugoio/hugo/commit/c397975a) [@&#8203;bep](https://github.com/bep) [#&#8203;9269](https://github.com/gohugoio/hugo/issues/9269) - Update to Go 1.17.4 and remove timeout in resources.Get [`965a6cb`](https://github.com/gohugoio/hugo/commit/965a6cbf) [@&#8203;bep](https://github.com/bep) [#&#8203;9265](https://github.com/gohugoio/hugo/issues/9265) ### [`v0.90.0`](https://github.com/gohugoio/hugo/releases/v0.90.0) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.89.4...v0.90.0) **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 [@&#8203;vanbroup](https://github.com/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](https://gohugo.io/hugo-pipes/introduction/) functions as they were local. A contrived example may look like this: ```htmlbars {{ $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.[@&#8203;bep](https://github.com/bep) leads the Hugo development with a significant amount of contributions, but also a big shoutout to [@&#8203;jmooring](https://github.com/jmooring), [@&#8203;vanbroup](https://github.com/vanbroup), and [@&#8203;dependabot\[bot\]](https://github.com/apps/dependabot) for their ongoing contributions. And thanks to [@&#8203;digitalcraftsman](https://github.com/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](https://github.com/gohugoio/hugoDocs), which has received **17 contributions by 6 contributors**. A special thanks to [@&#8203;jmooring](https://github.com/jmooring), [@&#8203;bep](https://github.com/bep), [@&#8203;santosh](https://github.com/santosh), and [@&#8203;coliff](https://github.com/coliff) for their work on the documentation site. Hugo now has: - 55686+ [stars](https://github.com/gohugoio/hugo/stargazers) - 431+ [contributors](https://github.com/gohugoio/hugo/graphs/contributors) - 415+ [themes](http://themes.gohugo.io/) #### Notes - deps: Upgrade github.com/evanw/esbuild v0.13.12 => v0.14.2 (note) [`b4f27ef`](https://github.com/gohugoio/hugo/commit/b4f27ef8) [@&#8203;bep](https://github.com/bep) [#&#8203;9244](https://github.com/gohugoio/hugo/issues/9244) #### Changes - Add custom font support to images.Text [`e71d715`](https://github.com/gohugoio/hugo/commit/e71d715b) [@&#8203;bep](https://github.com/bep) [#&#8203;9253](https://github.com/gohugoio/hugo/issues/9253) - images: Fix cache busting of image text filter [`e61cdf3`](https://github.com/gohugoio/hugo/commit/e61cdf33) [@&#8203;bep](https://github.com/bep) [#&#8203;9238](https://github.com/gohugoio/hugo/issues/9238) - build(deps): bump github.com/getkin/kin-openapi from 0.80.0 to 0.85.0 [`6c3bc5e`](https://github.com/gohugoio/hugo/commit/6c3bc5eb) [@&#8203;dependabot\[bot\]](https://github.com/apps/dependabot) - images: Text filter that draws text with the given options ([#&#8203;9239](https://github.com/gohugoio/hugo/issues/9239)) [`283394a`](https://github.com/gohugoio/hugo/commit/283394a4) [@&#8203;vanbroup](https://github.com/vanbroup) [#&#8203;9238](https://github.com/gohugoio/hugo/issues/9238) - tpl/transform: Optional options for highlight func [`5538507`](https://github.com/gohugoio/hugo/commit/5538507e) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;9249](https://github.com/gohugoio/hugo/issues/9249) - deps: Upgrade github.com/evanw/esbuild v0.13.12 => v0.14.2 (note) [`b4f27ef`](https://github.com/gohugoio/hugo/commit/b4f27ef8) [@&#8203;bep](https://github.com/bep) [#&#8203;9244](https://github.com/gohugoio/hugo/issues/9244) - releaser: Add "note" to Note regexp [`3473e31`](https://github.com/gohugoio/hugo/commit/3473e31e) [@&#8203;bep](https://github.com/bep) - build(deps): bump github.com/mitchellh/mapstructure from 1.4.2 to 1.4.3 [`fa0da00`](https://github.com/gohugoio/hugo/commit/fa0da004) [@&#8203;dependabot\[bot\]](https://github.com/apps/dependabot) - releaser: Rework and simplify to use GitHub only for release notes [`24a893c`](https://github.com/gohugoio/hugo/commit/24a893cf) [@&#8203;bep](https://github.com/bep) - build(deps): bump google.golang.org/api from 0.51.0 to 0.61.0 [`bf1564b`](https://github.com/gohugoio/hugo/commit/bf1564bd) [@&#8203;dependabot\[bot\]](https://github.com/apps/dependabot) - media: Add rss suffix for application/rss+xml [`cd44d40`](https://github.com/gohugoio/hugo/commit/cd44d409) [@&#8203;vanbroup](https://github.com/vanbroup) [#&#8203;9233](https://github.com/gohugoio/hugo/issues/9233) - parser: Add a test case in format resolution [`9a326d5`](https://github.com/gohugoio/hugo/commit/9a326d56) [@&#8203;bep](https://github.com/bep) [#&#8203;9233](https://github.com/gohugoio/hugo/issues/9233) - lazy: Reset error in Reset [`b10381f`](https://github.com/gohugoio/hugo/commit/b10381fb) [@&#8203;bep](https://github.com/bep) [#&#8203;7043](https://github.com/gohugoio/hugo/issues/7043) [#&#8203;9194](https://github.com/gohugoio/hugo/issues/9194) - Implement XML data support [`0eaaa8f`](https://github.com/gohugoio/hugo/commit/0eaaa8fe) [@&#8203;vanbroup](https://github.com/vanbroup) [#&#8203;4470](https://github.com/gohugoio/hugo/issues/4470) - Validate private use language tags [`58adbee`](https://github.com/gohugoio/hugo/commit/58adbeef) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;9119](https://github.com/gohugoio/hugo/issues/9119) - resources: Add timeout to the HTTP request in Get [`93572e5`](https://github.com/gohugoio/hugo/commit/93572e53) [@&#8203;bep](https://github.com/bep) - Add a remote retry for resources.Get [`94f149b`](https://github.com/gohugoio/hugo/commit/94f149b2) [@&#8203;bep](https://github.com/bep) - Make resources.Get use a file cache for remote resources [`6675341`](https://github.com/gohugoio/hugo/commit/66753416) [@&#8203;vanbroup](https://github.com/vanbroup) [#&#8203;9228](https://github.com/gohugoio/hugo/issues/9228) - Remove empty href element from pagination template [`133e4bf`](https://github.com/gohugoio/hugo/commit/133e4bfb) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;9149](https://github.com/gohugoio/hugo/issues/9149) - Check for empty deployment targets and matchers [`f122771`](https://github.com/gohugoio/hugo/commit/f122771f) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;9220](https://github.com/gohugoio/hugo/issues/9220) - resources: Adjust the remote Get cache so it does not get evicted on restarts [`08a863e`](https://github.com/gohugoio/hugo/commit/08a863e1) [@&#8203;bep](https://github.com/bep) - Add remote support to resources.Get [`8aa7257`](https://github.com/gohugoio/hugo/commit/8aa7257f) [@&#8203;vanbroup](https://github.com/vanbroup) [#&#8203;5255](https://github.com/gohugoio/hugo/issues/5255) - Add deprecation warning to google_news template [`75a823a`](https://github.com/gohugoio/hugo/commit/75a823a3) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;9172](https://github.com/gohugoio/hugo/issues/9172) - helpers: Make UniqueStringsReuse allocation free [`5e0947c`](https://github.com/gohugoio/hugo/commit/5e0947c5) [@&#8203;bep](https://github.com/bep) - releaser: Prepare repository for 0.90.0-DEV [`0b70b46`](https://github.com/gohugoio/hugo/commit/0b70b46a) [@&#8203;bep](https://github.com/bep) - releaser: Add release notes to /docs for release of 0.89.4 [`ab01ba6`](https://github.com/gohugoio/hugo/commit/ab01ba6e) [@&#8203;bep](https://github.com/bep) - releaser: Bump versions for release of 0.89.4 [`cc08c09`](https://github.com/gohugoio/hugo/commit/cc08c095) [@&#8203;bep](https://github.com/bep) - releaser: Add release notes for 0.89.4 \[ci skip] [`f97da9e`](https://github.com/gohugoio/hugo/commit/f97da9ec) [@&#8203;bep](https://github.com/bep) - Fix content dir resolution when main project is a Hugo Module [`2e70f61`](https://github.com/gohugoio/hugo/commit/2e70f61f) [@&#8203;bep](https://github.com/bep) [#&#8203;9177](https://github.com/gohugoio/hugo/issues/9177) - releaser: Prepare repository for 0.90.0-DEV [`1ed8069`](https://github.com/gohugoio/hugo/commit/1ed8069a) [@&#8203;bep](https://github.com/bep) - releaser: Add release notes to /docs for release of 0.89.3 [`c88cdb5`](https://github.com/gohugoio/hugo/commit/c88cdb56) [@&#8203;bep](https://github.com/bep) - releaser: Bump versions for release of 0.89.3 [`e1064d2`](https://github.com/gohugoio/hugo/commit/e1064d21) [@&#8203;bep](https://github.com/bep) - releaser: Add release notes for 0.89.3 \[ci skip] [`bf489b9`](https://github.com/gohugoio/hugo/commit/bf489b96) [@&#8203;bep](https://github.com/bep) - Improve error when we cannot determine content directory in "hugo new" [`b815545`](https://github.com/gohugoio/hugo/commit/b8155452) [@&#8203;bep](https://github.com/bep) [#&#8203;9166](https://github.com/gohugoio/hugo/issues/9166) - deps: Upgrade github.com/yuin/goldmark v1.4.3 => v1.4.4 [`08552a7`](https://github.com/gohugoio/hugo/commit/08552a7a) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;9159](https://github.com/gohugoio/hugo/issues/9159) - commands: Make sure pollInterval is always set [`fdad91f`](https://github.com/gohugoio/hugo/commit/fdad91fd) [@&#8203;bep](https://github.com/bep) [#&#8203;9165](https://github.com/gohugoio/hugo/issues/9165) - create: Improve archetype directory discovery and tests [`5f3f608`](https://github.com/gohugoio/hugo/commit/5f3f6089) [@&#8203;bep](https://github.com/bep) [#&#8203;9146](https://github.com/gohugoio/hugo/issues/9146) - create: Add a log statement when archetype is a directory [`057d02d`](https://github.com/gohugoio/hugo/commit/057d02de) [@&#8203;bep](https://github.com/bep) [#&#8203;9157](https://github.com/gohugoio/hugo/issues/9157) - create: Always print "Content ... created" [`43ac59d`](https://github.com/gohugoio/hugo/commit/43ac59da) [@&#8203;bep](https://github.com/bep) [#&#8203;9157](https://github.com/gohugoio/hugo/issues/9157) - commands: Fix missing file locking in server partial render [`ab5c699`](https://github.com/gohugoio/hugo/commit/ab5c6990) [@&#8203;bep](https://github.com/bep) [#&#8203;9162](https://github.com/gohugoio/hugo/issues/9162) - modules: Improve error message [`9369d13`](https://github.com/gohugoio/hugo/commit/9369d13e) [@&#8203;davidsneighbour](https://github.com/davidsneighbour) - releaser: Prepare repository for 0.90.0-DEV [`805c24c`](https://github.com/gohugoio/hugo/commit/805c24c3) [@&#8203;bep](https://github.com/bep) - releaser: Add release notes to /docs for release of 0.89.2 [`63e3a5e`](https://github.com/gohugoio/hugo/commit/63e3a5eb) [@&#8203;bep](https://github.com/bep) - releaser: Bump versions for release of 0.89.2 [`eaa6c96`](https://github.com/gohugoio/hugo/commit/eaa6c96a) [@&#8203;bep](https://github.com/bep) - releaser: Add release notes for 0.89.2 \[ci skip] [`cf3eb58`](https://github.com/gohugoio/hugo/commit/cf3eb580) [@&#8203;bep](https://github.com/bep) - Fix path resolution in hugo new [`2b01c85`](https://github.com/gohugoio/hugo/commit/2b01c85d) [@&#8203;bep](https://github.com/bep) [#&#8203;9129](https://github.com/gohugoio/hugo/issues/9129) - deps: Upgrade github.com/yuin/goldmark v1.4.2 => v1.4.3 [`c09f5c5`](https://github.com/gohugoio/hugo/commit/c09f5c5f) [@&#8203;bep](https://github.com/bep) [#&#8203;9137](https://github.com/gohugoio/hugo/issues/9137) - releaser: Prepare repository for 0.90.0-DEV [`9232e28`](https://github.com/gohugoio/hugo/commit/9232e284) [@&#8203;bep](https://github.com/bep) - releaser: Add release notes to /docs for release of 0.89.1 [`b6a4ae4`](https://github.com/gohugoio/hugo/commit/b6a4ae4a) [@&#8203;bep](https://github.com/bep) - releaser: Bump versions for release of 0.89.1 [`84de0c3`](https://github.com/gohugoio/hugo/commit/84de0c32) [@&#8203;bep](https://github.com/bep) - releaser: Add release notes for 0.89.1 \[ci skip] [`a074102`](https://github.com/gohugoio/hugo/commit/a0741022) [@&#8203;bep](https://github.com/bep) - Revert "releaser: Fat MacOS binaries" [`da4406e`](https://github.com/gohugoio/hugo/commit/da4406ea) [@&#8203;bep](https://github.com/bep) [#&#8203;9131](https://github.com/gohugoio/hugo/issues/9131) [#&#8203;9128](https://github.com/gohugoio/hugo/issues/9128) - create: Make sure the build lock is released before we open editor [`166862a`](https://github.com/gohugoio/hugo/commit/166862a0) [@&#8203;bep](https://github.com/bep) [#&#8203;9121](https://github.com/gohugoio/hugo/issues/9121) - readme: Update dependency list [`82c33c7`](https://github.com/gohugoio/hugo/commit/82c33c71) [@&#8203;deining](https://github.com/deining) - releaser: Add "note" to Note regexp [`3473e31`](https://github.com/gohugoio/hugo/commit/3473e31e) [@&#8203;bep](https://github.com/bep) - releaser: Rework and simplify to use GitHub only for release notes [`24a893c`](https://github.com/gohugoio/hugo/commit/24a893cf) [@&#8203;bep](https://github.com/bep) - releaser: Simplify the release process [`0fa40ce`](https://github.com/gohugoio/hugo/commit/0fa40ce5) [@&#8203;bep](https://github.com/bep) - releaser: Remove unused code [`bf537f1`](https://github.com/gohugoio/hugo/commit/bf537f1c) [@&#8203;bep](https://github.com/bep) - docs: Regenerate docs helper [`e86b331`](https://github.com/gohugoio/hugo/commit/e86b3311) [@&#8203;bep](https://github.com/bep) </details> --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
renovator changed title from chore(deps): update dependency gohugoio/hugo to v0.90.0 to chore(deps): update dependency gohugoio/hugo to v0.90.1 2021-12-10 13:01:54 +00:00
renovator force-pushed renovate/gohugoio-hugo-0.x from 91c6680b05 to 100abf7bf6 2021-12-10 13:01:55 +00:00 Compare
xoxys merged commit bf39b43cc7 into main 2021-12-16 11:44:44 +00:00
xoxys deleted branch renovate/gohugoio-hugo-0.x 2021-12-16 11:44:45 +00:00
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: container/hugo#26
No description provided.