chore(deps): update dependency gohugoio/hugo to v0.92.0 #31

Merged
xoxys merged 1 commits from renovate/gohugoio-hugo-0.x into main 2022-01-16 14:04:08 +01:00
Member

This PR contains the following updates:

Package Update Change
gohugoio/hugo minor v0.91.2 -> v0.92.0

Release Notes

gohugoio/hugo

v0.92.0

Compare Source

Hugo 0.92.0 is mostly a release to prepare for some cool stuff coming in the next releases. Most notable are the deprecation updates:

  • The .Page methods marked as deprecated in Hugo 0.55 are now removed. They have been logged as an ERROR for a long time now and you will still get a clear error if you use them.
  • The support for MMark as a Markdown engine is removed. That has been marked as deprecated for a long time, and the upstream library is also deprecated and unmaintained.
  • If you use .Path on a Page that is backed by a file, you will now get a warning. More on that below.

The .Path method on Page works like before. But that method currently has a little vague specification – it behaves a little different if backed by a file. In Hugo 0.93 we're going to introduce a canonical content path, and to prepare for that change, you may see this in your log:

WARN 2022/01/12 10:23:37 .Path when the page is backed by a file is deprecated and will be removed in a future release. We plan to use Path for a canonical source path and you probably want to check the source is a file. To get the current behaviour, you can use a construct simlar to the below:

  {{ $path := "" }}
  {{ with .File }}
	{{ $path = .Path }}
  {{ else }}
	{{ $path = .Path }}
  {{ end }}

Re-run Hugo with the flag --panicOnWarning to get a better error message.

.Path is commonly used to create links to the source on GitHub – and that obviously only works for files, so you, as suggested above, may want to check if it's a file first.

Note that the --panicOnWarning flag is a new flag in this release and works for all warnings – it will fail fast on the first warning and point to the line in question. This makes it much easier to pin-point the location.

But this release isn't all about technical upgrades. We have also added a new hugo.Deps template function. We have already a way to list the Hugo Modules dependencies from the command line (hugo mod graph), but we thought it would be useful to also record this into your rendered site. An example of a "dependency table" in HTML may look like this:

<h2>Dependencies</h2>
<table class="table table-dark">
    <thead>
    <tr>
        <th scope="col">#</th>
        <th scope="col">Owner</th>
        <th scope="col">Path</th>
        <th scope="col">Version</th>
        <th scope="col">Time</th>
        <th scope="col">Vendor</th>
    </tr>
    </thead>
    <tbody>
    {{ range $i, $e := hugo.Deps }}
    <tr>
        <th scope="row">{{ add $i 1 }}</th>
        <td>{{ with .Owner }}{{.Path }}{{ end }}</td>
        <td>
        {{ .Path }}
        {{ with .Replace}}
        => {{ .Path }}
        {{ end }}
        </td>
        <td>{{ .Version }}</td>
        <td>{{ with .Time }}{{ . }}{{ end }}</td>
        <td>{{ .Vendor }}</td>
    </tr>
    {{ end }}
    </tbody>
</table>

This release represents 41 contributions by 4 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, @​ptgott, and @​roointan 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 9 contributions by 4 contributors. A special thanks to @​bep, @​jmooring, @​anarchivist, and @​davidsneighbour 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.91.2` -> `v0.92.0` | --- ### Release Notes <details> <summary>gohugoio/hugo</summary> ### [`v0.92.0`](https://github.com/gohugoio/hugo/releases/v0.92.0) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.91.2...v0.92.0) Hugo `0.92.0` is mostly a release to prepare for some cool stuff coming in the next releases. Most notable are the deprecation updates: - The `.Page` methods marked as deprecated in Hugo 0.55 are now removed. They have been logged as an `ERROR` for a long time now and you will still get a clear error if you use them. - The support for `MMark` as a Markdown engine is removed. That has been marked as deprecated for a long time, and the upstream library is also deprecated and unmaintained. - If you use `.Path` on a `Page` that is backed by a file, you will now get a warning. More on that below. The `.Path` method on `Page` works like before. But that method currently has a little vague specification – it behaves a little different if backed by a file. In Hugo `0.93` we're going to introduce a *canonical content path*, and to prepare for that change, you may see this in your log: ```bash WARN 2022/01/12 10:23:37 .Path when the page is backed by a file is deprecated and will be removed in a future release. We plan to use Path for a canonical source path and you probably want to check the source is a file. To get the current behaviour, you can use a construct simlar to the below: {{ $path := "" }} {{ with .File }} {{ $path = .Path }} {{ else }} {{ $path = .Path }} {{ end }} Re-run Hugo with the flag --panicOnWarning to get a better error message. ``` `.Path` is commonly used to create links to the source on GitHub – and that obviously only works for files, so you, as suggested above, may want to check if it's a file first. Note that the `--panicOnWarning` flag is a new flag in this release and works for all warnings – it will fail fast on the first warning and point to the line in question. This makes it much easier to pin-point the location. But this release isn't all about technical upgrades. We have also added a new `hugo.Deps` template function. We have already a way to list the Hugo Modules dependencies from the command line (`hugo mod graph`), but we thought it would be useful to also record this into your rendered site. An example of a "dependency table" in HTML may look like this: ```htmlbars <h2>Dependencies</h2> <table class="table table-dark"> <thead> <tr> <th scope="col">#</th> <th scope="col">Owner</th> <th scope="col">Path</th> <th scope="col">Version</th> <th scope="col">Time</th> <th scope="col">Vendor</th> </tr> </thead> <tbody> {{ range $i, $e := hugo.Deps }} <tr> <th scope="row">{{ add $i 1 }}</th> <td>{{ with .Owner }}{{.Path }}{{ end }}</td> <td> {{ .Path }} {{ with .Replace}} => {{ .Path }} {{ end }} </td> <td>{{ .Version }}</td> <td>{{ with .Time }}{{ . }}{{ end }}</td> <td>{{ .Vendor }}</td> </tr> {{ end }} </tbody> </table> ``` This release represents **41 contributions by 4 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;ptgott](https://github.com/ptgott), and [@&#8203;roointan](https://github.com/roointan) 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 **9 contributions by 4 contributors**. A special thanks to [@&#8203;bep](https://github.com/bep), [@&#8203;jmooring](https://github.com/jmooring), [@&#8203;anarchivist](https://github.com/anarchivist), and [@&#8203;davidsneighbour](https://github.com/davidsneighbour) for their work on the documentation site. Hugo now has: - 56338+ [stars](https://github.com/gohugoio/hugo/stargazers) - 431+ [contributors](https://github.com/gohugoio/hugo/graphs/contributors) - 415+ [themes](http://themes.gohugo.io/) #### Notes - Make the deprecated Page/File methods (from Hugo 0.55) ERROR [`56ab83a`](https://github.com/gohugoio/hugo/commit/56ab83a5) [@&#8203;bep](https://github.com/bep) [#&#8203;9346](https://github.com/gohugoio/hugo/issues/9346) - releaser: Add release notes for 0.91.2 \[ci skip] [`f0b55a6`](https://github.com/gohugoio/hugo/commit/f0b55a68) [@&#8203;bep](https://github.com/bep) - releaser: Add release notes for 0.91.1 \[ci skip] [`af165d5`](https://github.com/gohugoio/hugo/commit/af165d5b) [@&#8203;bep](https://github.com/bep) #### Changes - docs: Regenerate docshelper [`f2bc13d`](https://github.com/gohugoio/hugo/commit/f2bc13dd) [@&#8203;bep](https://github.com/bep) - Only create LazyContentProvider for the non-rendering Site [`cdcd15b`](https://github.com/gohugoio/hugo/commit/cdcd15b6) [@&#8203;bep](https://github.com/bep) [#&#8203;8919](https://github.com/gohugoio/hugo/issues/8919) - Fix missing page data for alternative formats [`25d645f`](https://github.com/gohugoio/hugo/commit/25d645f4) [@&#8203;ptgott](https://github.com/ptgott) [#&#8203;8919](https://github.com/gohugoio/hugo/issues/8919) - docs: Add dependency table to maintainance page [`fbb3c18`](https://github.com/gohugoio/hugo/commit/fbb3c181) [@&#8203;bep](https://github.com/bep) [#&#8203;8949](https://github.com/gohugoio/hugo/issues/8949) - deps: Upgrade github.com/evanw/esbuild v0.14.8 => v0.14.11 [`9af4ca3`](https://github.com/gohugoio/hugo/commit/9af4ca38) [@&#8203;bep](https://github.com/bep) - Add hugo.Deps [`7396aa9`](https://github.com/gohugoio/hugo/commit/7396aa94) [@&#8203;bep](https://github.com/bep) [#&#8203;8949](https://github.com/gohugoio/hugo/issues/8949) - hugolib: Fix livereload problem with files including NFC characters in MacOs [`d82cef5`](https://github.com/gohugoio/hugo/commit/d82cef5c) [@&#8203;roointan](https://github.com/roointan) [#&#8203;8429](https://github.com/gohugoio/hugo/issues/8429) - docs. Regen CLI docs [`74f0777`](https://github.com/gohugoio/hugo/commit/74f0777c) [@&#8203;bep](https://github.com/bep) [#&#8203;9363](https://github.com/gohugoio/hugo/issues/9363) - commands: Fix CLI help text for hugo new [`e334a40`](https://github.com/gohugoio/hugo/commit/e334a406) [@&#8203;bep](https://github.com/bep) [#&#8203;9363](https://github.com/gohugoio/hugo/issues/9363) - Update to Go 1.17.6 [`5bd3c8d`](https://github.com/gohugoio/hugo/commit/5bd3c8df) [@&#8203;bep](https://github.com/bep) [#&#8203;9361](https://github.com/gohugoio/hugo/issues/9361) - create: Correctly pass newContentEditor flags [`0aca99f`](https://github.com/gohugoio/hugo/commit/0aca99fe) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;9356](https://github.com/gohugoio/hugo/issues/9356) - Add --panicOnWarning flag [`c8b5ab7`](https://github.com/gohugoio/hugo/commit/c8b5ab75) [@&#8203;bep](https://github.com/bep) [#&#8203;9357](https://github.com/gohugoio/hugo/issues/9357) [#&#8203;9359](https://github.com/gohugoio/hugo/issues/9359) - github: Increase stale days [`85c5b89`](https://github.com/gohugoio/hugo/commit/85c5b895) [@&#8203;bep](https://github.com/bep) - docs: Regenerate CLI docs [`9657608`](https://github.com/gohugoio/hugo/commit/96576083) [@&#8203;bep](https://github.com/bep) - docs: Regenerate docshelper [`4a0b553`](https://github.com/gohugoio/hugo/commit/4a0b5533) [@&#8203;bep](https://github.com/bep) - Remove mmark [`1651beb`](https://github.com/gohugoio/hugo/commit/1651beb2) [@&#8203;bep](https://github.com/bep) [#&#8203;9350](https://github.com/gohugoio/hugo/issues/9350) - Misc depreation updates [`2b6063c`](https://github.com/gohugoio/hugo/commit/2b6063c3) [@&#8203;bep](https://github.com/bep) [#&#8203;9348](https://github.com/gohugoio/hugo/issues/9348) [#&#8203;9349](https://github.com/gohugoio/hugo/issues/9349) - Make the deprecated Page/File methods (from Hugo 0.55) ERROR [`56ab83a`](https://github.com/gohugoio/hugo/commit/56ab83a5) [@&#8203;bep](https://github.com/bep) [#&#8203;9346](https://github.com/gohugoio/hugo/issues/9346) - github: Add add stale GitHub action [`dad0dc8`](https://github.com/gohugoio/hugo/commit/dad0dc8d) [@&#8203;bep](https://github.com/bep) - Fix surprise OutputFormat.Rel overwriting [`d3c4fdb`](https://github.com/gohugoio/hugo/commit/d3c4fdb8) [@&#8203;ptgott](https://github.com/ptgott) [#&#8203;8030](https://github.com/gohugoio/hugo/issues/8030) - hugolib: Make an RST test optional [`d632dd7`](https://github.com/gohugoio/hugo/commit/d632dd7d) [@&#8203;bep](https://github.com/bep) - deps: Upgrade github.com/niklasfasching/go-org v1.5.0 => v1.6.0 [`0671ef5`](https://github.com/gohugoio/hugo/commit/0671ef55) [@&#8203;jmooring](https://github.com/jmooring) [#&#8203;8921](https://github.com/gohugoio/hugo/issues/8921) - Update stale.yml [`672481f`](https://github.com/gohugoio/hugo/commit/672481f1) [@&#8203;bep](https://github.com/bep) - releaser: Prepare repository for 0.92.0-DEV [`1dbfc0f`](https://github.com/gohugoio/hugo/commit/1dbfc0f9) [@&#8203;bep](https://github.com/bep) - releaser: Bump versions for release of 0.91.2 [`1798bd3`](https://github.com/gohugoio/hugo/commit/1798bd3f) [@&#8203;bep](https://github.com/bep) - releaser: Add release notes for 0.91.2 \[ci skip] [`f0b55a6`](https://github.com/gohugoio/hugo/commit/f0b55a68) [@&#8203;bep](https://github.com/bep) - Revert "config/security: Add HOME to default exec env var whitelist" [`623dda7`](https://github.com/gohugoio/hugo/commit/623dda71) [@&#8203;bep](https://github.com/bep) - Make sure we always create the /public folder [`aee9e11`](https://github.com/gohugoio/hugo/commit/aee9e11a) [@&#8203;bep](https://github.com/bep) [#&#8203;8166](https://github.com/gohugoio/hugo/issues/8166) - Fix "stuck on build" in error situations in content processing [`bd63c1a`](https://github.com/gohugoio/hugo/commit/bd63c1aa) [@&#8203;bep](https://github.com/bep) [#&#8203;8166](https://github.com/gohugoio/hugo/issues/8166) - deps: Run "go mod tidy" [`9eb0580`](https://github.com/gohugoio/hugo/commit/9eb05807) [@&#8203;bep](https://github.com/bep) - deps: Upgrade github.com/evanw/esbuild v0.14.7 => v0.14.8 [`654f513`](https://github.com/gohugoio/hugo/commit/654f513a) [@&#8203;bep](https://github.com/bep) - releaser: Prepare repository for 0.92.0-DEV [`759cdf3`](https://github.com/gohugoio/hugo/commit/759cdf3f) [@&#8203;bep](https://github.com/bep) - releaser: Bump versions for release of 0.91.1 [`f423505`](https://github.com/gohugoio/hugo/commit/f4235057) [@&#8203;bep](https://github.com/bep) - releaser: Add release notes for 0.91.1 \[ci skip] [`af165d5`](https://github.com/gohugoio/hugo/commit/af165d5b) [@&#8203;bep](https://github.com/bep) - media: Also consider extension in FromContent [`6779117`](https://github.com/gohugoio/hugo/commit/6779117f) [@&#8203;bep](https://github.com/bep) - media: Add missing BMP and GIF to the default MediaTypes list [`ce04011`](https://github.com/gohugoio/hugo/commit/ce040110) [@&#8203;bep](https://github.com/bep) - media: Add PDF MIME type [`cdc7352`](https://github.com/gohugoio/hugo/commit/cdc73526) [@&#8203;bep](https://github.com/bep) - deps: Update github.com/evanw/esbuild v0.14.5 => v0.14.7 [`425c7d9`](https://github.com/gohugoio/hugo/commit/425c7d90) [@&#8203;bep](https://github.com/bep) - config/security: Add HOME to default exec env var whitelist [`fca266e`](https://github.com/gohugoio/hugo/commit/fca266eb) [@&#8203;bep](https://github.com/bep) [#&#8203;9309](https://github.com/gohugoio/hugo/issues/9309) - modules: Set GOCACHE env var [`0016e21`](https://github.com/gohugoio/hugo/commit/0016e21c) [@&#8203;bep](https://github.com/bep) [#&#8203;9309](https://github.com/gohugoio/hugo/issues/9309) - releaser: Prepare repository for 0.92.0-DEV [`728feae`](https://github.com/gohugoio/hugo/commit/728feaec) [@&#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 added 1 commit 2022-01-12 11:02:23 +01:00
xoxys merged commit 9206db97f9 into main 2022-01-16 14:04:08 +01:00
xoxys deleted branch renovate/gohugoio-hugo-0.x 2022-01-16 14:04:09 +01: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#31
No description provided.