Output Minification, Live-Reload Fixes and More
Hugo 0.47
is named Hugo Reloaded. It adds minification support for the final rendered output (run hugo --minify
), but it is mostly a bug fix release. And most notably, it fixes a set of issues with live-reloading/partial rebuilds when running hugo server
. Working with bundles should now be a more pleasant experience, to pick one example.
This release represents 35 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 @satotake, @anthonyfok, and @coliff for their ongoing contributions.
And a big thanks to @digitalcraftsman and @onedrawingperday for their relentless work on keeping the themes site in pristine condition and to @kaushalmodi for his great work on the documentation site.
Many have also been busy writing and fixing the documentation in hugoDocs, which has received 21 contributions by 10 contributors. A special thanks to @bep, @aapeliv, @regisphilibert, and @brentybh for their work on the documentation site.
Hugo now has:
- 27980+ stars
- 442+ contributors
- 251+ themes
Enhancements
Templates
- Suppress blank lines from opengraph internal template c09ee78f @anthonyfok
- Add MIME type to embedded JS 755d1ffe @bep #5042
- Add
os.Stat
template function d7112085 @satotake
Output
Other
- Regenerate CLI docs 4a16b5f4 @bep
- Include theme name in version mismatch error e5052f4e @bep #5044
- Make the JS minifier matcher less specific c81fbf46 @bep #5073
- Close file when done f6ae436c @bep #5062
- https links to 3rd party sites c2a67413 @coliff
- Update alias.go 06bd0136 @coliff
- Remove test debug fb3cb05c @bep
- Update dependencies d07882df @bep
- Update Chroma 7f535671 @bep #5025
- Remove alias of os.Stat 71931b30 @satotake
- Renmae FileStat Stat d40116e5 @satotake
- Reduce allocation in the benchmark itself a6b1eb1e @bep
- Simplify the 0 transformer case 27110133 @bep
Fixes
Templates
- Fix compiling Amber templates that import other templates 37438757 @Stebalien
- Reimplement the “.Params tolower” template transformer 5c538491 @bep #5068
Output
Core
- Force render of any changed page, even in Fast Render Mode 22475460 @bep #5083
- Add configFile(s) back to the watch list after REMOVE event abc54080 @anthonyfok #4701
- Gracefully handle typos in server config when running the server a655e00d @bep #5081
- Fix shortcode output wrapped in p 78c99463 @gllera #1642
- Adjust tests for shortcode p-issue baa62d0a @bep #1642
- Fix image cache-clearing for sub-languages 9d973004 @bep #5084
- Fix error when deleting a bundle in server mode 0a88741f @bep #5077
- Fix Related when called from shortcode 0dd06bda @bep #5071
- Use the interface value when doing Related search a6f199f7 @bep #5071
- Fix GitInfo when multiple content dirs 2182ecfd @bep #5054
- Add multiple content dirs to GitInfo test site e85833d8 @bep #5054
- Fix “adding a bundle” in server mode d139a037 @bep #5075
- Fix typo c362634b @satotake
Улучшить эту страницу