v0.36
Hugo 0.36
announces smart cropping of images, using the library created by muesli. We will work with him to improve this even more in the future, but this is now the default used when cropping images in Hugo.
Go here for a list of examples.
This release represents 7 contributions by 3 contributors to the main Hugo code base.
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, @Jibec, @Nick-Rivera, and @kaushalmodi for their work on the documentation site.
Hugo now has:
- 23100+ stars
- 448+ contributors
- 197+ themes
Notes
Hugo now defaults to smart crop when cropping images, if you don't specify it when calling .Fill
.
You can get the old default by adding this to your config.toml
:
[imaging]
anchor = "center"
Also, we have removed the superflous anchor name from the processed filenames that does not use this anchor, so it can be wise to run hugo --gc
once to remove unused images.
Enhancements
Fixes
- Ensure site templates can override theme templates 084cf419 @moorereason #3505
- Add additional test to
TestTemplateLookupOrder
fc06d5c1 @moorereason #3505 - Fix broken
TestTemplateLookupOrder
9a367d9d @moorereason - Fix JSON array-based data file handling regression 4402c077 @vassudanagunta #4361
- Increase data directory test coverage 4743de0d @vassudanagunta #4138
Automated with GoReleaser
Built with go version go1.9.3 linux/amd64