@bep bep released this Oct 10, 2018 · 44 commits to master since this release

Assets 30

This is a bug-fix release with a 2 related fixed. This was introduced in Hugo 0.49. The most notable error situation was that resources.Concat could fail in some situations.

@bep bep released this Sep 24, 2018 · 50 commits to master since this release

Assets 30

Hugo 0.49 brings directory based archetypes and also improves the language handling in hugo new. This should simplify working with page bundles. One example of this would be how you now can create a new showcase for the Hugo web site.

But this release is also about collections. Go 1.11 gave us variable overwrite support in Go templates. That made it possible to simplify a lot of template constructs, but it also showed some limitations in Hugo's template functions. So with this release we have:

  • added append function to append to collections.
  • added group to create custom page groups.
  • improved the type support in slice.

This release represents 66 contributions by 9 contributors to the main Hugo code base.
@bep leads the Hugo development with a significant amount of contributions, but also a big shoutout to @moorereason, @felicianotech, and @vdanjean for their ongoing contributions.
And a big thanks to @digitalcraftsman and @onedrawingperday for their relentless work on keeping the themes site in pristine condition and to @kaushalmodi for his great work on the documentation site.

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

Hugo now has:

Notes

  • Remove deprecated rssURI f1a00b20 @bep
  • Remove deprecated flags df4cbbd3 @bep
  • Deprecate Pages.Sort. Use .ByWeight 2e2e34a9 @bep
  • When setting preserveTaxonomyNames Hugo now really preserves them. Before this release, we would make the first character upper case. If this is the behaviour you want you can use the new strings.FirstUpper function.

Enhancements

Templates

Core

Other

Fixes

@bep bep released this Aug 29, 2018 · 129 commits to master since this release

Assets 30

Hugo 0.48 is built with the brand new Go 1.11. On the technical side this means that Hugo now uses Go Modules for the build. The big new functional thing in Go 1.11 for Hugo is added support for variable overwrites. This means that you can now do:

{{ $var := "Hugo Page" }}
{{ if .IsHome }}
{{ $var = "Hugo Home" }}
{{ end }}
Var is {{ $var }}

The above may look obvious, but has not been possible until now. In Hugo we have had .Scratch as a workaround for this, but Go 1.11 will help clean up a lot of templates.

This release represents 23 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 @anthonyfok, @vsopvsop, and @moorereason 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.

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

Hugo now has:

Enhancements

Fixes

@bep bep released this Aug 20, 2018 · 153 commits to master since this release

Assets 29

This is a bug-fix release with two fixes.

Fixes

Updates to Linux Snap build

@bep bep released this Aug 17, 2018 · 162 commits to master since this release

Assets 29

Hugo 0.47 is named Hugo Reloaded. It adds minification support for the final rendered output (run hugo --minify), but it is mostly a bug fix release. And most notably, it fixes a set of issues with live-reloading/partial rebuilds when running hugo server. Working with bundles should now be a more pleasant experience, to pick one example.

This release represents 35 contributions by 6 contributors to the main Hugo code base.
@bep leads the Hugo development with a significant amount of contributions, but also a big shoutout to @satotake, @anthonyfok, and @coliff for their ongoing contributions.

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

Many have also been busy writing and fixing the documentation in hugoDocs,
which has received 21 contributions by 10 contributors. A special thanks to @bep, @aapeliv, @regisphilibert, and @brentybh for their work on the documentation site.

Hugo now has:

Enhancements

Templates

Output

Other

Fixes

Templates

Output

Core

@bep bep released this Aug 1, 2018 · 209 commits to master since this release

Assets 29

Hugo 0.46 is the closing credits to The Summer of Hugo. While most people have been relaxing on the beach, Hugo has been really busy:

This was followed by some more technical follow-up releases. And today, when July has turned into August, we come with another one. It's not a big release. But with the big interest in Hugo Pipes, we felt that it was important to get this out there sooner rather than later.

There are two main items in this release:

  1. We have added a custom SCSS/SASS import resolver that respects Hugo's project/themes filesystem hierarchy anywhere in /assets. Using the LibSass' resolver alone only made this work for the entry folder.
  2. Resources fetched via resources.Get and similar are now language agnostic. The thought behind the original implementation was maximum flexibility with support for assetDir per language. In practice, this was a bad idea, as it made some CSS imports hard to get working in multilingual setups, and you got duplication of identical content for no good reason, with added processing time.

This release represents 12 contributions by 2 contributors to the main Hugo code base.

A special thanks in this release goes to @onedrawingperday for his excellent work maintaining the fast-growing Themes Site.

Many have also been busy writing and fixing the documentation in hugoDocs,
which has received 5 contributions by 3 contributors.

Hugo now has:

Notes

  • Resources fetched via resources.Get and similar are now considered global across languages. If you need, as an example, to create a CSS per language, you need to set the path yourself.

Enhancements

Fixes


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

@bep bep released this Jul 25, 2018 · 224 commits to master since this release

Assets 29

This is a bug-fix release with a couple of important fixes (and one enhancement).

Enhancements

Fixes


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

@bep bep released this Jul 22, 2018 · 232 commits to master since this release

Assets 29

Hugo 0.45 is the revival of ref, relref and GetPage. @vassudanagunta and @bep have done some great work improving the API and implementation for the helper functions used to get one page. Before this release, the API was a little bit clumsy and the result potentially ambiguous in some situations.

Now you can simply do:

{{ with .Site.GetPage "/blog/my-post.md" }}{{ .Title }}{{ end }}

Or to get a section page:

{{ with .Site.GetPage "/blog" }}{{ .Title }}{{ end }}

We have also added a .GetPage method on Page and added support for page-relative linking. This means that the leading slash (/) now has a meaning. For .Site.GetPage, all lookups will start at the content root. But for lookups with a Page context, paths without a leading slash will be treated as relative to the page.

This means that the following example will find the page in the current section:

{{< ref "my-post.md" >}}

You can also use the .. to refer to a page one level up etc.:

{{< ref "../my-post.md" >}}

We have now also added language support to ref and relref, so you can link to a page in another language:

{{< relref path="document.md" lang="jp" >}}

To link to a given Output Format of a document, you can use this syntax:

{{< relref path="document.md" outputFormat="rss" >}}

To make working with these reflinks on bigger sites easier to work with, we have also improved the error logging, and added two new configuration settings:

  • refLinksErrorLevel: ERROR (default, will fail the build when a reflink cannot be resolved) or WARNING.
  • refLinksNotFoundURL: Set this to an URL placeholder used when no reference could be resolved.

Visit the Hugo Docs for more information.

We have also done some important improvements and fixes in Hugo Pipes in this release: SCSS source maps on Windows now works, we now support project-local PostCSS installation, and we have added IncludePaths to SCSS options, making it possible to include, say, a path below node_modules in the SASS/SCSS build.

This release represents 31 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 @vassudanagunta, @hairmare, and @garrmcnu 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.

Many have also been busy writing and fixing the documentation in hugoDocs,
which has received 10 contributions by 8 contributors. A special thanks to @kaushalmodi, @Hanzei, @KurtTrowbridge, and @regisphilibert for their work on the documentation site.

Hugo now has:

Notes

  • .Site.GetPage with more than 2 arguments will not work anymore. This means that {{ .Site.GetPage "page" "blog" "my-post.md" }} will fail. {{ .Site.GetPage "page" "blog/my-post.md" }} will work, but we recommend you use the simpler {{ .Site.GetPage "/blog/my-post.md" }}
  • Relative paths in relref or ref that finds its match not relative to the page itself will work, but we now print a warning saying that you should correct it to an absolute path. E.g. {{</* ref "blog/my-post.md" */>}} => {{</* ref "/blog/my-post.md" */>}}.

Enhancements

Fixes


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

@bep bep released this Jul 13, 2018 · 274 commits to master since this release

Assets 29

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:

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

Fixes


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