Skip to content

@bep bep released this Apr 24, 2020 · 9 commits to master since this release

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

Assets 29

@bep bep released this Apr 22, 2020 · 16 commits to master since this release

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

Assets 29

@bep bep released this Apr 10, 2020 · 31 commits to master since this release

It's Easter, a time for mysteries and puzzles. And at first glance, this Hugo release looks a little mysterious. The core of it is a mind-twister:

{{ $css := resources.Get "css/main.css" }}
{{ $css = $css | resources.PostCSS }}
{{ if hugo.IsProduction }}
{{ $css = $css | minify | fingerprint | resources.PostProcess }}
{{ end }}
<link href="{{ $css.RelPermalink }}" rel="stylesheet" />

The above uses the new resources.PostProcess template function which tells Hugo to postpone the transformation of the Hugo Pipes chain to after the build, allowing the build steps to use the build output in /public as part of its processing.

The prime current use case for the above is CSS pruning in PostCSS. In simple cases you can use the templates as a base for the content filters, but that has its limitations and can be very hard to setup, especially in themed configurations. So we have added a new writeStats configuration that, when enabled, will write a file named hugo_stats.json to your project root with some aggregated data about the build, e.g. list of HTML entities published, to be used to do CSS pruning.

This release represents 20 contributions by 10 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, @jaywilliams, and @satotake 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 @davidsneighbour and @kaushalmodi for all the great work on the documentation site.

Many have also been busy writing and fixing the documentation in hugoDocs,
which has received 14 contributions by 7 contributors. A special thanks to @bep, @coliff, @dmgawel, and @jasikpark for their work on the documentation site.

Hugo now has:

Enhancements

Templates

Other

Fixes

Other

Assets 29

@bep bep released this Mar 21, 2020 · 73 commits to master since this release

This release (finally) brings minify configuration, a big thanks to @satotake for that contribution. See Configure Minify for details.

We have also extended the Page Build Options to allow fully navigable headless sections.

This release represents 17 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 @evankanderson, @QuLogic, and @le0tan 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 @davidsneighbour and @kaushalmodi for all the great work on the documentation site.

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

Hugo now has:

Enhancements

Other

Fixes

Other

Assets 29

@bep bep released this Mar 15, 2020 · 92 commits to master since this release

Some minor fixes:

Assets 29

@bep bep released this Mar 9, 2020 · 102 commits to master since this release

The two main items in Hugo 0.67.0 is custom HTTP header support in hugo server and incldue/exclude filters for Hugo Deploy.

Being able to configure HTTP headers in your development server means that you can now verify how your site behaves with the intended Content Security Policy settings etc., e.g.:

[server]
[[server.headers]]
for = "/**.html"

[server.headers.values]
X-Frame-Options = "DENY"
X-XSS-Protection = "1; mode=block"
X-Content-Type-Options = "nosniff"
Referrer-Policy = "strict-origin-when-cross-origin"
Content-Security-Policy = "script-src localhost:1313"

Note: This release also changes how raw HTML files inside /content is processed to be in line with the documentation. See #7030.

This release represents 7 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 @satotake, @sams96, and @davidejones 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 @davidsneighbour and @kaushalmodi for all the great work on the documentation site.

Many have also been busy writing and fixing the documentation in hugoDocs,
which has received 5 contributions by 5 contributors. A special thanks to @bep, @psliwka, @digitalcraftsman, and @jasikpark for their work on the documentation site.

Hugo now has:

Enhancements

Other

Fixes

Templates

Other

Assets 29

@bep bep released this Mar 3, 2020 · 116 commits to master since this release

This release adds inline @import support to resources.PostCSS, with imports relative to Hugo's virtual, composable file system. Another useful addition is the new build configuration section. As an example in config.toml:

[build]
  useResourceCacheWhen = "always"

The above will tell Hugo to always use the cached build resources inside resources/_gen for the build steps requiring a non-standard dependency (PostCSS and SCSS/SASS). Valid values are never, always and fallback (default).

This release represents 27 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 @anthonyfok, @carlmjohnson, and @sams96 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 @davidsneighbour and @kaushalmodi for all the great work on the documentation site.

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

Hugo now has:

Enhancements

Templates

Other

Fixes

Output

Core

Other

Assets 29
You can’t perform that action at this time.