4c81c6c2a live reload: add section about `--navigateToChanged` 271014257 Update netify hugo version to 0.83.1 14199cff1 Add pull_request event 0c33b05de Hosting on GitHub: Little wording fixes and update Ubuntu runner in example workflow to 20.04 (#1457) e47b6c33a Hugo Modules plural typo (#1266) 0f2bbacdd Add node_modules to .gitignore 1d645d79f Overhaul scratch.md (#1451) 572766889 Add link to golang regex syntax, change modified date 21b0c7459 Add info about contentType config de7d96fa2 Document Go template's multiline support 0c8f2dcb1 Avoid scratch usage 696fa92e1 Rename scratch var 44193f267 Update usage instructions 4230f8fa5 Rename and refactor shortcode e9953751e Strip leading whitespaces d61a58010 Add `insertpages` shortcode 04d30677d Mention WebP under 'Target Format' (#1431) 946784508 Update lookup-order.md (#1443) a7b587988 Update index.md 27907f7ea netlify: Hugo 0.83.1 044d37e57 Merge branch 'tempv0.83.1' b81aedb03 Fix page `.Kind` fcf7775ad releaser: Add release notes to /docs for release of 0.83.1 9b39c77c8 fix typo in 0.83 release notes 1c38993ce Update index.md 45b8aefa6 Update index.md 43902dfaa Update index.md 3d959c7ae Merge branch 'tempv0.83.0' 6c22dc327 Fix URL 497ea3224 Use Hugo version badge shortcode a182d10dd releaser: Add release notes to /docs for release of 0.83.0 287fd9ac0 docs: Fix shortcode e789c879a docs: Regenerate docs helper 1666c7f31 docs: Regenerate CLI docs 117de1d12 Merge commit 'c239c643fee10bfa217cb108755b798f8f5f3b10' a6bf3f7d9 docs: Regen docs helper git-subtree-dir: docs git-subtree-split: 4c81c6c2ace6c23d0d5d24ee37e6a2f30acba01e
16 KiB
date: 2021-05-01 title: "Hugo 0.83: WebP Support!" description: "WebP image encoding support, some important i18n fixes, and more." categories: ["Releases"]
Note: If you use i18n, there is an unfortunate regression bug in this release (see issue). A patch release coming Sunday.
Hugo 0.83
finally brings WebP image processing support. Note that you need the extended version of Hugo to encode to WebP. If you want to target all Hugo versions, you may use a construct such as this:
{{ $images := slice }}
{{ $images = $images | append ($img.Resize "300x") }}
{{ if hugo.IsExtended }}
{{ $images = $images | append ($img.Resize "300x webp") }}
{{ end }}
Also worth highlighting:
- Some important language/i18n fixes (thanks to @jmooring for helping out with these):
- You can now use slice syntax in the sections permalinks config2dc222ce @bep #8363.
This release represents 61 contributions by 9 contributors to the main Hugo code base.@bep leads the Hugo development with a significant amount of contributions, but also a big shoutout to @dependabot[bot], @jmooring, and @anthonyfok for their ongoing contributions. And a big thanks to @digitalcraftsman for his relentless work on keeping the themes site in pristine condition.
Many have also been busy writing and fixing the documentation in hugoDocs, which has received 10 contributions by 5 contributors. A special thanks to @lupsa, @jmooring, @bep, and @arhuman for their work on the documentation site.
Hugo now has:
- 51594+ stars
- 432+ contributors
- 370+ themes
Notes
- We have updated ESBUild to v0.11.16. There are no breaking changes on the API side, but you may want to read the release upstream release notes: https://github.com/evanw/esbuild/releases/tag/v0.10.0 https://github.com/evanw/esbuild/releases/tag/v0.11.0
Enhancements
Templates
Output
- Make the shortcode template lookup for output formats stable 0d86a32d @bep #7774
- Only output mediaType once in docshelper JSON 7b4ade56 @bep #8379
Other
- Regenerate docs helper a9b52b41 @bep
- Regenerate CLI docs b073a1c9 @bep
- Remove all dates from gendoc 4227cc1b @bep
- Update getkin/kin-openapi v0.60.0 => v0.61. 3cc4fdd6 @bep
- Update github.com/evanw/esbuild v0.11.14 => v0.11.16 78c1a6a7 @bep
- Remove .Site.Authors from embedded templates f6745ad3 @jmooring #4458
- Don't treat a NotFound response for Delete as a fatal error. f523e9f0 @vangent
- Switch to deb packages of nodejs and python3-pygments 63cd05ce @anthonyfok
- Install bin/node from node/14/stable 902535ef @anthonyfok
- bump github.com/getkin/kin-openapi from 0.55.0 to 0.60.0 70aebba0 @dependabot[bot]
- bump github.com/evanw/esbuild from 0.11.13 to 0.11.14 3e3b7d44 @dependabot[bot]
- Update to Chroma v0.9.1 048418ba @caarlos0
- Improve plural handling of floats eebde0c2 @bep #8464
- bump github.com/evanw/esbuild from 0.11.12 to 0.11.13 65c502cc @dependabot[bot]
- Revise the plural implementation 537c905e @bep #8454#7822
- Update to "base: core20" 243951eb @anthonyfok
- bump github.com/frankban/quicktest from 1.11.3 to 1.12.0 fe2ee028 @dependabot[bot]
- bump google.golang.org/api from 0.44.0 to 0.45.0 316d65cd @dependabot[bot]
- bump github.com/aws/aws-sdk-go from 1.37.11 to 1.38.23 b95229ab @dependabot[bot]
- Correct function name in comment 0551df09 @xhit
- Upgraded github.com/evanw/esbuild v0.11.0 => v0.11.12 057e5a22 @bep
- Regen docs helper fd96f65a @bep
- bump github.com/tdewolff/minify/v2 from 2.9.15 to 2.9.16 d3a64708 @dependabot[bot]
- bump golang.org/x/text from 0.3.5 to 0.3.6 3b56244f @dependabot[bot]
- Remove some unreachable code f5d3d635 @bep
- bump github.com/getkin/kin-openapi from 0.39.0 to 0.55.0 0d3c42da @dependabot[bot]
- Some performance tweaks for the HTML elements collector ef34dd8f @bep
- Exclude comment and doctype elements from writeStats bc80022e @dirkolbrich #8396#8417
- Merge branch 'release-0.82.1' 2bb9496c @bep
- bump github.com/yuin/goldmark from 1.3.2 to 1.3.5 3ddffd06 @jmooring #8377
- Remove duplicate references from release notes 6fc52d18 @jmooring #8360
- bump github.com/spf13/afero from 1.5.1 to 1.6.0 73c3ae81 @dependabot[bot]
- bump github.com/pelletier/go-toml from 1.8.1 to 1.9.0 7ca118fd @dependabot[bot]
- Add webp image encoding support 33d5f805 @bep #5924
- bump google.golang.org/api from 0.40.0 to 0.44.0 509d39fa @dependabot[bot]
- bump github.com/nicksnyder/go-i18n/v2 from 2.1.1 to 2.1.2 7725c41d @dependabot[bot]
- bump github.com/rogpeppe/go-internal from 1.6.2 to 1.8.0 5d36d801 @dependabot[bot]
- Remove extraneous space from figure shortcode 9b34d42b @jmooring #8401
- bump github.com/magefile/mage from 1.10.0 to 1.11.0 c2d8f87c @dependabot[bot]
- bump github.com/google/go-cmp from 0.5.4 to 0.5.5 cbc24661 @dependabot[bot]
- Disable broken pretty relative links feature fa432b17 @niklasfasching
- Update go-org to v1.5.0 0cd55c66 @niklasfasching
- bump github.com/jdkato/prose from 1.2.0 to 1.2.1 0d5cf256 @dependabot[bot]
- bump github.com/spf13/cobra from 1.1.1 to 1.1.3 36527576 @dependabot[bot]
- Add complete dependency list in "hugo env -v" 9b83f45b @bep #8400
- Add hugo.IsExtended 7fdd2b95 @bep #8399
- Also test minified HTML in the element collector 3d5dbdcb @bep #7567
- Skip script, pre and textarea content when looking for HTML elements 8a308944 @bep #7567
- Add slice syntax to sections permalinks config 2dc222ce @bep #8363
- Upgrade github.com/evanw/esbuild v0.9.6 => v0.11.0 4d22ad58 @bep
Fixes
Templates
Output
- Regression in media type suffix lookup 6e9d2bf0 @bep #8406
- Regression in media type suffix lookup e73f7a77 @bep #8406
Other
- Fix multiple unknown language codes 7eb80a9e @bep #7838
- Fix permalinks pattern detection for some of the sections variants c13d3687 @bep #8363
- Fix Params case handling in where with slices of structs (e.g. Pages) bca40cf0 @bep #7009
- Fix typo in docshelper.go 7c7974b7 @jmooring #8380
- Try to fix the fuzz build 5e2f1289 @bep