Skip to content

Releases: gohugoio/hugo

v0.25.1

10 Jul 07:07
@bep bep
Compare
Choose a tag to compare

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

Hugo now has:

Fixes

  • Fix union when the first slice is empty dbbc5c48 @bep #3686
  • Navigate to changed on CREATE When working with content from IntelliJ IDE, like WebStorm, every file save is followed by two events: "RENAME" and then "CREATE". 7bcc1ce6 @miltador
  • Final (!) fix for issue with escaped JSON front matter 7f82b41a @bep #3682
  • Fix issue with escaped JSON front matter 84db6c74 @bep #3682

Automated with GoReleaser
Built with go version go1.8.3 darwin/amd64

v0.25

07 Jul 07:40
@bep bep
Compare
Choose a tag to compare

Hugo 0.25 is the Kinder Surprise: It automatically opens the page you're working on in the browser, it adds full AND and OR support in page queries, and you can now have templates per language.

Hugo Open on Save

If you start with hugo server --navigateToChanged, Hugo will navigate to the relevant page on save (see animated GIF). This is extremely useful for site-wide edits. Another very useful feature in this version is the added support for AND (intersect) and OR (union) filters when combined with where.

Example:

{{ $pages := where .Site.RegularPages "Type" "not in" (slice "page" "about") }}
{{ $pages := $pages | union (where .Site.RegularPages "Params.pinned" true) }}
{{ $pages := $pages | intersect (where .Site.RegularPages "Params.images" "!=" nil) }}

The above fetches regular pages not of page or about type unless they are pinned. And finally, we exclude all pages with no images set in Page params.

This release represents 36 contributions by 12 contributors to the main Hugo code base. @bep still leads the Hugo development with his witty Norwegian humor, and once again contributed a significant amount of additions. But also a big shoutout to @yihui, @anthonyfok, and @kropp 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.

Hugo now has:

Enhancements

Templates

Output

  • Support templates per site/language. This is for both regular templates and shortcode templates. aa6b1b9b @bep #3360

Core

Other

Fixes

Templates

Other


Automated with @goreleaser
Built with go version go1.8.3 darwin/amd64

v0.24.1

24 Jun 08:39
@bep bep
Compare
Choose a tag to compare

This release fixes some important archetype-related regressions from the recent Hugo 0.24-relase.

Fixes

Enhancements


Automated with @goreleaser
Built with go version go1.8.3 darwin/amd64

v0.24

21 Jun 12:08
@bep bep
Compare
Choose a tag to compare

This is The Revival of the Archetypes!

"A feature that could be the name of the next Indiana Jones movie deserves its own release," says @bep.

Hugo now handles the archetype files as Go templates. This means that the issues with sorting and lost comments are long gone. This also means that you will have to supply all values, including title and date. But this also opens up a lot of new windows.

A fictional example for the section newsletter and the archetype file archetypes/newsletter.md:

---
title: "{{ replace .TranslationBaseName "-" " " | title }}"
date: {{ .Date }}
draft: true
---

**Insert Lead paragraph here.**

<!--more-->

## New Cool Posts

{{ range first 10 ( where .Site.RegularPages "Type" "cool" ) }}
* {{ .Title }}
{{ end }}

And then create a new post with:

hugo new newsletter/the-latest-cool.stuff.md

Note: the site will only be built if the .Site is in use in the archetype file, and this can be time consuming for big sites.

Hot Tip: If you set the newContentEditor configuration variable to an editor on your PATH, the newly created article will be opened.

The above newsletter type archetype illustrates the possibilities: The full Hugo .Site and all of Hugo's template funcs can be used in the archetype file.

Also, Hugo now supports archetype files for all content formats, not just markdown.

Hugo now has:

Notes

  • Archetype files now need to be complete, including title and date.
  • The -f (format) flag in hugo new is removed: Now use the archetype files as is.

Enhancements

Fixes


Automated with @goreleaser
Built with go version go1.8.3 darwin/amd64

v0.23

16 Jun 08:14
@bep bep
Compare
Choose a tag to compare

Hugo 0.23 is mainly a release that handles all the small changes needed to get Hugo moved to a GitHub organisation: gohugoio, but it also contains a couple of important fixes that makes this an update worth-while for all.

Hugo now has:

Fixes

GitHub organisation related changes


Automated with @goreleaser
Built with go version go1.8.3 darwin/amd64

v0.22.1

13 Jun 12:43
@bep bep
Compare
Choose a tag to compare

Hugo 0.22.1 fixes a couple of issues reported after the 0.22 release Monday. Most importantly a fix for detecting regular subfolders below the root-sections.

Also, we forgot to adapt the permalink settings with support for nested sections, which made that feature less useful than it could be.

With this release you can configure permalinks with sections like this:

First level only:

[permalinks]
blog = ":section/:title"

Nested (all levels):

[permalinks]
blog = ":sections/:title"

Fixes


Automated with @goreleaser
Built with go version go1.8.3 darwin/amd64

v0.22

12 Jun 07:15
@bep bep
Compare
Choose a tag to compare

Hugo 0.22 brings nested sections, by popular demand and a long sought after feature (#465). We are still low on documentation for this great feature, but @bep has been kind enough to accompany his implementation with a demo site.

This release represents 58 contributions by 10 contributors to the main Hugo code base. Since last release Hugo has gained 420 stars and 2 additional themes.

@bep still leads the Hugo development with his witty Norwegian humor, and once again contributed a significant amount of additions. But also a big shoutout to @bogem, @moorereason, and @onedrawingperday for their ongoing contributions. And as always big thanks to @digitalcraftsman for his relentless work on keeping the documentation and the themes site in pristine condition.

Hugo now has:

Other Highlights

.Site.GetPage can now also be used to get regular pages (#2844):

{{ (.Site.GetPage "page" "blog" "mypost.md" ).Title }}

Also, considerable work has been put into writing automated benchmark tests for the site builds, and we're happy to report that although this release comes with fundamental structural changes, this version is -- in general -- even faster than the previous. It’s quite a challenge to consistently add significant new functionality and simultaneously maintain the stellar performance Hugo is famous for.

Notes

.Site.Sections is replaced. We have reworked how sections work in Hugo, they can now be nested and are no longer taxonomies. If you use the old collection, you should get detailed upgrade instructions in the log when you run hugo. For more information, see this demo site.

Enhancements

Templates

Core

Performance

Other

Docs

Fixes

Core

  • Improve live-reload on directory structure changes making removal of directories or pasting new content directories into  /content just work fe901b81 @bep #3570
  • Respect disableKinds=[&#34;sitemap&#34;] 69d92dc4 @bep #3544
  • Fix disablePathToLower regression 5be04486 @bep #3374
  • Fix ref/relref issue with duplicate base filenames 612f6e3a @bep #2507

Docs


Automated with @goreleaser
Built with go version go1.8.3 darwin/amd64

v0.21

22 May 13:25
@bep bep
Compare
Choose a tag to compare

Hugo 0.21 brings full support for shortcodes per Output Format (#3220), the last vital piece of that puzzle. This is especially useful for Google AMP with its many custom media tags.

This release represents 126 contributions by 29 contributors to the main Hugo code base. Since last main release Hugo has gained 850 stars and 7 additional themes.

Hugo now has:

@bep leads the Hugo development with a significant amount of contributions, but also a big shoutout to @moorereason, @bogem, and @munnerz 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.

Other Highlights

On a more technical side, @moorereason and @bep have introduced namespaces for Hugo's many template funcs (#3042 ). There are so many now, and adding more into that big pile would be a sure path toward losing control. Now they are nicely categorised into namespaces with its own tests and examples, with an API that the documentation site can use to make sure it is correct and up-to-date.

Notes

  • The deprecated .Extension, .Now and .TargetPath will now ERROR 544f0a63 @bep
  • The config settings and flags disable404, disableRSS, disableSitemap, disableRobotsTXT are now deprecated. Use disableKinds. 5794a265 @bep #3345

Enhancements

Templates

Output

  • Refactor site rendering with an "output format context". In this release, this is used for shortcode handling only, but this paves the way for future niceness 1e4d082c @bep #3397 2bcbf104 @bep #3220

Core

Docs

Other

Fixes

Templates

Output

Core

Docs

Read more

v0.20.7

03 May 07:49
@bep bep
Compare
Choose a tag to compare

This just fixes an issue with the release scripts, no change in the binaries.

Hugo now has:

Fix


Automated with @goreleaser
Built with go version go1.8.1 darwin/amd64

v0.20.6

27 Apr 18:52
@bep bep
Compare
Choose a tag to compare

There have been some shouting on discuss.gohugo.io about some broken sites after the release of Hugo 0.20. This release reintroduces the old behaviour, making /my-blog-post/index.md work as expected.

Hugo now has:

Fixes


Automated with @goreleaser
Built with go version go1.8.1 darwin/amd64