Hugo 0.67.0: Custom HTTP headers | Hugo

https://gohugo.io/news/0.67.0-relnotes/

This version brings Custom HTTP headers to the development server and exclude/include filters in Hugo Deploy.

March 9, 2020

Go to Hugo Releases for the release downloads.

Featured Image for Hugo 0.67.0: Custom HTTP headers

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