Skip to content

Releases: gohugoio/hugo

v0.38.2

09 Apr 08:26
@bep bep
Compare
Choose a tag to compare

This is a bug-fix release with a couple of important fixes:

Also in this release:


Automated with GoReleaser
Built with go version go1.10 linux/amd64

v0.38.1

05 Apr 16:40
@bep bep
Compare
Choose a tag to compare

This is a bug-fix that is mainly motivated by some issues with server live reloading introduced in Hugo 0.38.

This release also contains some improvements:


Automated with GoReleaser
Built with go version go1.10 linux/amd64

v0.38

02 Apr 11:07
@bep bep
Compare
Choose a tag to compare

Hugo 0.38 is an Easter egg filled with good stuff. We now support fetching date and slug from the content filename, making the move from Jekyll even easier. And you can now set contentDir per language with intelligent merging, and themes can now provide configuration ... Also worth mentioning is several improvements in the Chroma highlighter, most notable support for Go templates.

We are working hard to get the documentation up-to-date with the new features, but you can also see them in action with the full source at hugotest.bep.is.

This release represents 39 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 @anthonyfok, @felicianotech, and @paulcmal for their ongoing contributions.

And a big thanks to @digitalcraftsman for his relentless work on keeping the themes site in pristine condition and to @kaushalmodi for his great work on the documentation site.

Also, a shoutout to @regisphilibert for his work on the new Code Toggle Shortcode on the Hugo docs site, which we will put to good use to improve all the configuration samples.

Many have also been busy writing and fixing the documentation in hugoDocs,
which has received 55 contributions by 18 contributors. A special thanks to @kaushalmodi, @bep, @xa0082249956, and @paulcmal for their work on the documentation site.

Hugo now has:

Notes

  • Hugo now allows partial redefinition outputs in your site configuration. This is what most people would expect, but it is still a change in behaviour. For details, see #4487
  • Before this release, Hugo flattened URLs of processed images in sub-folders. This worked fine but was not intentional. See #4502.

Enhancements

Fixes


Automated with GoReleaser
Built with go version go1.10 linux/amd64

v0.37.1

07 Mar 18:00
@bep bep
Compare
Choose a tag to compare

This is a bug-fix release with a one important fix:

Image content such as SVG cannot be scaled with the built-in image processing methods, but it should still be possible to use them as page resources. This was a regression in Hugo 0.37 and is now fixed. ba94abbf @bep #4455


Automated with GoReleaser
Built with go version go1.10 linux/amd64

v0.37

27 Feb 09:20
@bep bep
Compare
Choose a tag to compare

The main item in Hugo 0.37 is that we now properly preserve the colour palette when processing PNG images. We got reports from users experiencing their PNG images getting bigger in file size when scaled down. Now, if you, as an example, start out with a carefully chosen 8 bit colour palette (i.e. PNG-8), this is now what you will end up with. A special thanks to @aitva for doing the investigative work finding a proper fix for this issue.

This release represents 40 contributions by 5 contributors to the main Hugo code base.

@bep leads the Hugo development with a significant amount of contributions, but also a big shoutout to @vassudanagunta, @kaushalmodi, and @curttimson for their ongoing contributions.

And as always a big thanks to @digitalcraftsman for his relentless work on keeping the documentation and the themes site in pristine condition.

Many have also been busy writing and fixing the documentation in hugoDocs,
which has received 24 contributions by 8 contributors. A special thanks to @bep, @4RU, @kaushalmodi, and @mitchchn for their work on the documentation site.

Hugo now has:

Notes

  • Hugo will now convert non-string YAML map keys to string. See #4393 for more information. You will get a WARNING in the console if you are touched by this.
  • We have improved the PNG processing, and have incremented the version numbers on the URL for the processed PNG image. This will just work, but you may want to run hugo --gc to clean up some old stale images in the resource cache.

Enhancements

Templates

  • Add template func for TOML/JSON/YAML docs examples conversion. This is mainly motivated by the needs of the Hugo docs site. d382502d @bep #4389

Core

Other

Fixes

Core

Other


Automated with GoReleaser
Built with go version go1.10 linux/amd64

v0.36.1

15 Feb 09:12
@bep bep
Compare
Choose a tag to compare

This release fixes a multi-thread issue when reprocessing and reusing images across pages. When doing something like this with the same image from a partial used in, say, both the home page and the single page:

{{ with $img }}
{{ $big := .Fill "1024x512 top" }}
{{ $small := $big.Resize "512x" }}
{{ end }}

There would be timing issues making Hugo in some cases trying to process the same image twice at the same time.

You would experience errors of type:

png: invalid format: not enough pixel data

This commit fixes that by adding a mutex per image. This should also improve the performance, sligthly, as it avoids duplicate work.

The current workaround before this fix is to always operate on the original:

{{ with $img }}
{{ $big := .Fill "1024x512 top" }}
{{ $small := .Fill "512x256 top" }}
{{ end }}

This error was rare (no reports on GitHub or the discussion forum), but very hard to debug for the end user.


Automated with GoReleaser
Built with go version go1.9.4 linux/amd64

v0.36

05 Feb 15:50
@bep bep
Compare
Choose a tag to compare

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:

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


Automated with GoReleaser
Built with go version go1.9.3 linux/amd64

v0.35

31 Jan 10:48
@bep bep
Compare
Choose a tag to compare

The most notable new feature in Hugo 0.35 is perhaps Headless Bundles.

This means that you in your index.md front matter can say:

headless: true

And

  • it will have no Permalink and no rendered HTML in /public
  • it will not be part of .Site.RegularPages etc.

But you can get it by:

  • .Site.GetPage ...

The use cases are many:

  • Shared media libraries
  • Reusable page content "snippets"
  • ...

But this release contains more goodies than possible to sum up in one paragraph, so study the release notes carefully. It represents 42 contributions by 8 contributors to the main Hugo code base.

@bep leads the Hugo development with a significant amount of contributions, but also a big shoutout to @vassudanagunta, @yanzay, and @robertbasic for their ongoing contributions.

And as always a big thanks to @digitalcraftsman for his relentless work on keeping the documentation and the themes site in pristine condition.

Many have also been busy writing and fixing the documentation in hugoDocs,
which has received 28 contributions by 5 contributors. A special thanks to @bep, @kaushalmodi, @regisphilibert, and @salim-b for their work on the documentation site.

Hugo now has:

Notes

Enhancements

Templates

Other

Fixes

Read more

v0.34

22 Jan 12:10
@bep bep
Compare
Choose a tag to compare

Hugo 0.34 is a small release. It contains a few smaller bug-fixes, but more important is an overhaul of the API used to find images and other resources in your page bundles.

We have added two simple methods on the Resources object:

  • .Match finds every resource matching a pattern. Examples: .Match "images/*.jpg" finds every JPEG image in images and .Match "**.jpg" finds every JPEG image in the bundle.
  • .GetMatch finds the first resource matching the pattern given.

Note: The path separators used are Unix-style forward slashes, even on Windows.

It uses standard wildcard syntax with the addition of the **, aka super-asterisk, which matches across path boundaries.

Thanks to @gobwas for a fast and easy-to-use Glob library.

This release represents 5 contributions by 1 contributors to the main Hugo code base.

Many have also been busy writing and fixing the documentation in hugoDocs,
which has received 25 contributions by 16 contributors. A special thanks to @bep, @rmetzler, @chris-rudmin, and @stkevintan for their work on the documentation site.

Hugo now has:

Notes

  • Resources.GetByPrefix and Resources.ByPrefix are depracated. They still work, but will eventually be removed. Use Resources.Match (many) and Resources.GetMatch (one).
  • When filtering bundles pages in sub-folders, you need to include the sub-folder when matching. This was a bug introduced in 0.33 and gets it in line with images and other resources.

Enhancements

Fixes


Automated with GoReleaser
Built with go version go1.9.2 linux/amd64

v0.33

18 Jan 10:27
@bep bep
Compare
Choose a tag to compare

Hugo 0.33 is the first main Hugo release of the new year, and it is safe to say that @bep has turned off his lazy Christmas mode 😃

This is a full makeover of the layout selection logic with full custom layout and type support (many have asked for this). Also, Hugo now respects the url value in front matter for all page types, including sections. Also, you can now configure uglyURLs per section.

But this release is also a follow-up to the 0.32 release which was all about bundles with resources and powerful image processing. With this release it is now simple to add metadata to your images and other bundle resources.

@bep has added a section with examples of both resources configuration in both YAML and TOML front matter in his test site. The example below shows a sample of how it would look like in YAML:

date: 2017-01-17
title: My Bundle With YAML Resource Metadata
resources:
- src: "image-4.png"
  title: "The Fourth Image"
- src: "*.png"
  name: "my-cool-image-:counter"
  title: "The Image #:counter"
  params:
    byline: "bep"

This release represents 41 contributions by 3 contributors to the main Hugo code base.

Hugo now has:

Notes

  • We have re-implemented and unified the template layout lookup logic. This has made it more powerful and much simpler to understand. We don't expect any sites to break because of this. We have tested lots of Hugo sites, including the 200 themes.
  • The indexes type is removed from template lookup. It's not in the documentation, and is a legacy term inherited from very old Hugo versions.
  • If you have sub-dirs in your shiny new bundles (e.g. my-bundle/images) and use the *Prefix* methods to find them, we have made an unintended change that affects you. See this issue.

Enhancements

Templates

Core

Fixes


Automated with GoReleaser
Built with go version go1.9.2 linux/amd64