Hugo 0.44: Friday the 13th Edition
Hugo 0.44
is the follow-up release, or The Sequel, of the very well received 0.43
only days ago. That release added Hugo Pipes, with SCSS/SASS support, assets bundling and minification, ad-hoc image processing and much more.
This is mostly a bug-fix release, but it also includes several important improvements.
Many complained that their SVG images vanished when browsed from the hugo server
. With Hugo Pipes MIME types suddenly got really important, but Hugo’s use of Suffix
was ambiguous. This became visible when we redefined the image/svg+xml
to work with Hugo Pipes. We have now added a Suffixes
field on the MIME type definition in Hugo, which is a list of one or more filename suffixes the MIME type is identified with. If you need to add a custom MIME type definition, this means that you also need to specify the full MIME type as the key, e.g. image/svg+xml
.
Hugo now has:
- 27120+ stars
- 443+ contributors
- 239+ themes
Notes
MediaType.Suffix
is deprecated and replaced with a plural version,MediaType.Suffixes
, with a more specific definition. You will get a detailed WARNING in the console if you need to do anything.
Enhancements
- Allow multiple file suffixes per media type b874a1ba @bep #4920
- Clean up the in-memory Resource reader usage 47d38628 @bep #4936
- Move opening of the transformed resources after cache check 0024dcfe @bep
- Improve type support in
resources.Concat
306573de @bep #4934 - Flush
partialCached
cache on rebuilds 6b6dcb44 @bep #4931 - Include the transformation step in the error message d96f2a46 @bep #4924
- Exclude *.svg from CRLF/LF conversion 9c1e8208 @anthonyfok
Fixes
Improve this page