Skip to content

Releases: gohugoio/hugo

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

v0.32.4

11 Jan 09:03
@bep bep
Compare
Choose a tag to compare

This is a bug-fix release with two of important fixes.


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

v0.32.3

08 Jan 11:13
@bep bep
Compare
Choose a tag to compare

Hugo 0.32 was a big and really cool release, and the Hugo Forum has been filled with questions from people wanting to upgrade their Hugo sites to be able to use the new image processing feature etc.

And with that we have discovered some issues, which this release should fix, mostly releated to multilingual sites:


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

v0.32.2

03 Jan 09:58
@bep bep
Compare
Choose a tag to compare

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

  • Handle publish of processed images to /public on fresh build with no image cache in /resources (as reported by one person in a Netlify build) 196da49c @bep #4213

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

v0.32.1

02 Jan 09:11
@bep bep
Compare
Choose a tag to compare

This fixes 2 bugs from the Hugo 0.32 release.

  • Fix image processing from shortcodes in non-server mode. @bep #4202
  • Fix broken hugo --renderToMemory. Note that this is only useful for benchmark testing, as there is no easy way to actually view the result. d36d71ed @bep #4212

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

v0.32

31 Dec 09:35
@bep bep
Compare
Choose a tag to compare

Hugo 0.32 features Page Bundles and Image Processing by @bep, which is very cool and useful on so many levels. Read about it in more detail in the Hugo documentation, but some of the highlights include:

  • Automatic bundling of a content page with its resources. Resources can be anything: Images, JSON files ... and also other content pages.
  • A Resource will have its RelPermalink and Permalink relative to the "owning page". This makes the complete article with both text and images portable (just send a ZIP file with a folder to your editor), and it can be previewed directly on GitHub.
  • Powerful and simple to use image processing with the new .Resize, .Fill, and .Fit methods on the new Image resource.
  • Full support for symbolic links inside /content, both for regular files and directories.

The built-in benchmarks in Hugo show that this is also the fastest and most memory effective Hugo version to date. But note that the build time total reported in the console is now adjusted to be the real total, including the copy of static files. So, if it reports more milliseconds, it is still most likely faster ...

This release represents 30 contributions by 7 contributors to the main Hugo code base.

@bep leads the Hugo development with a significant amount of contributions, but also a big shoutout to @betaveros, @chaseadamsio, and @kropp. And as always 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 17 contributions by 7 contributors. A special thanks to @bep, @felicianotech, @maiki, and @carlchengli for their work on the documentation site.

Hugo now has:

Today is New Year's Eve. It is the last day of 2017, a year that have seen a string of pearls of Hugo releases, making Hugo the top choice for website development:

  • 0.32, December 2017: Page Bundles and Image Processing edition.
  • 0.31, November 2017: The Language Multihost Edition! with one baseURL per language.
  • 0.30, October 2017: The Race Car Edition with the Fast Render Mode.
  • 0.29, September 2017: Added Template Metrics.
  • 0.28, September 2017: Blistering fast and native syntax highlighting from Chroma.
  • 0.27, September 2017: Fast and flexible Related Content.
  • 0.26, August 2017: The Language Style Edition with AP Style or Chicago Style Title Case and « French Guillemets ».
  • 0.25, July 2017: The Kinder Surprise edition added, among other cool things, hugo server --navigateToChanged which navigates to the content page you start editing.
  • 0.24, June 2017: Was The Revival of the Archetypes! Now archetype files, i.e. the content file templates, can include template syntax with all of Hugo's functions and variables.
  • 0.23, June 2017: Hugo moved to it's own GitHub organization, gohugoio.
  • 0.22, June 2017: Added nested sections, a long sought after feature.
  • 0.21, May 2017: Full support for shortcodes per output format (think AMP).
  • 0.20, April 2017: Was all about Custom Output Formats.
  • 0.19, February 2017: Native Emacs Org-mode content support and lots of internal upgrades.

Notes

  • The build total in the console is now the ... total (i.e. it now includes both the copy of the static files and the Hugo build). So if your Hugo site seems to build slightly slower, it is in reality probably slightly faster than before this release.
  • Images and other static resources in folders with "_index.md" will have its RelPermalink relative to its page.
  • Images and other static resources in or below "index.md" folders will have its RelPermalink relative to its page (respecting permalink settings etc.)
  • Content pages in or below "index.md" will not get their own URL, but will be part of the .Resources collection of its page.
  • .Site.Files is deprecated.
  • Hugo no longer minfies CSS files inside /content. This was an undocumented "proof of concept feature". We may revisit the "assets handling" in a future release.
  • Page.GetParamdoes not lowercase your result anymore. If you really want to lowercase your params, do it with .GetParam "myparam" | lower or similar.

Previously deprecated that will now ERROR:

  • disable404: Use disableKinds=["404"]
  • disableRSS: Use disableKinds=["RSS"]
  • disableSitemap: Use disableKinds=["sitemap"]
  • disableRobotsTXT: Use disableKinds=["robotsTXT"]

Enhancements

Fixes

Templates

Other


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

v0.31.1

27 Nov 11:30
@bep bep
Compare
Choose a tag to compare

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


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

v0.31

20 Nov 10:31
@bep bep
Compare
Choose a tag to compare

Hugo 0.31 is the Language Multihost Edition!

eSoliaThe Multihost feature is sponsored by eSolia, @rickcogley's company.

Multihost means that you can have a baseURL per language, for example, https://no.example.com and https://en.example.com. This is seamlessly integrated, and the built-in web server with live reload and navigateToChanged etc. just works. A related enhancement in this release is the support for as many static dirs as you need, with intelligent language overrides, forming a big union file system. Add to that several other language related fixes and enhancements, it is safe to say that this is the version you want for multilingual Hugo sites!

This release represents 44 contributions by 7 contributors to the main Hugo code base.
@bep leads the Hugo development with a significant amount of contributions, but also a big shoutout to @kaushalmodi, @natefinch, and @betaveros 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 13 contributions by 9 contributors. A special thanks to @oncletom, @kaushalmodi, @XhmikosR, and @digitalcraftsman for their work on the documentation site.

Hugo now has:

Notes

  • For mapping of translated content, Hugo now considers the full path of the content file, which makes it possible with translation of duplicate content filenames such as index.md. A specific translation key can be specified with the new translationKey front matter variable. See #2699.

Enhancements

Language related

Templates

Core

Other

Fixes

Templates

  • Make sure only one instance of a cached partial is rendered #4086

Other


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

v0.30.2

19 Oct 12:29
@bep bep
Compare
Choose a tag to compare

This release fixes Fast Render mode with sub-path in baseURL 31641033 @bep #3981.


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