Changelog History
Page 4
-
v0.67.0 Changes
March 09, 2020π 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:
- 42176+ stars
- 439+ contributors
- 301+ themes
β¨ Enhancements
Other
- Doument the server config 63393230 @bep
- π Support unComparable args of uniq/complement/in 8279d2e2 @satotake #6105
- β Add HTTP header support for the dev server 10831444 @bep #7031
- β Add include and exclude support for remote 51e178a6 @davidejones
π Fixes
Templates
Other
-
v0.66.0 Changes
March 03, 2020π This relase adds inline
@import
support toresources.PostCSS
, with imports relative to Hugo's virtual, composable file system. Another useful addition is the newbuild
configuration section. As an example inconfig.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 arenever
,always
andfallback
(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:
- 41984+ stars
- 439+ contributors
- 299+ themes
β¨ Enhancements
Templates
- π Change error message on missing resource d7798906 @sams96 #6942
- β Add math.Sqrt d184e505 @StarsoftAnalysis #6941
Other
- β Skip some tests on CircleCI 6a34f88d @bep
- {{ in }} should work with html.Template type ae383f04 @carlmjohnson #7002
- π Regen CLI docs ee31e61f @bep
- β Add --all flag to hugo mod clean 760a87a4 @bep
- β Add build.UseResourceCacheWhen 3d3fa5c3 @bep #6993
- β‘οΈ Update dependency list in README.md ee3d0213 @anthonyfok
- β Add full filename to image when processing fails 305ce1c9 @bep #7000
- β‘οΈ Update dependency list in README 449deb7f @anthonyfok
- β Add basic @import support to resources.PostCSS b66d38c4 @bep #6957#6961
- π Implement include/exclude filters for deploy 05a74eae @vangent #6922
- β‘οΈ Update to Go 1.14 and 1.13.8 33ae6210 @bep #6958
- β Add hugo.IsProduction function 1352bc88 @hcwong #6873
- Apply missing go fmt 76b2afe6 @bep
π Fixes
Output
Core
- π Fix error handling in page collector 3e9db2ad @bep #6988
- π Fix 2 Paginator.Pages taxonomy regressions 7ef5a4c8 @bep #6921#6918
- π Fix deletion of orphaned sections a70bbd06 @bep #6920
Other
- π Fix ref/relref short lookup for pages in sub-folder 8947c3fa @bep #6952
- π Fix ref/relRef regression for relative refs from bundles 1746e8a9 @bep #6952
- π Fix potential infinite recursion in server change detection 6f48146e @bep #6986
- π Fix rebuild logic when editing template using a base template b0d85032 @bep #6968
- π Fix panic when home page is drafted 0bd6356c @bep #6927
- π Fix goldmark toc rendering ca68abf0 @satotake #6736#6809
- π Fix crashes for 404 in IsAncestor etc. a524124b @bep #6931
- π Fix panic in 404.Parent 4c2a0de4 @bep #6924
-
v0.65.2
February 21, 2020 -
v0.65.0 Changes
February 20, 2020Hugo 0.65 generalizes how a page is packaged and published to be applicable to any page. This should solve some of the most common issues we see people ask and talk about on the issue tracker and on the forum.
π Release Highlights
π New in Hugo Core
Any branch node can now bundle resources (images, data files etc.), even the taxonomy nodes (e.g. /categories).
List pages (sections and the home page) can now be added to taxonomies.
The front matter fields that control when and if to publish a piece of content (
draft
,publishDate
,expiryDate
) now also works for list pages, and is recursive.0οΈβ£ We have added a new
_build
front matter keyword to provide fine-grained control over page publishing. The default values:\_build: # Whether to add it to any of the page collections. # Note that the page can still be found with .Site.GetPage. list: true # Whether to render it. render: true # Whether to publish its resources. These will still be published on demand, # but enabling this can be useful if the originals (e.g. images) are # never used. publishResources: true
Note that all front matter keywords can be set in the cascade on a branch node, which would be especially useful for
_build
.β¬οΈ We have also upgraded to the latest LibSass (v3.6.3). Nothing remarkable functional new here, but it makes Hugo ready for the upcoming Dart Backport.
And finally, we have added a
GetTerms
method onPage
, making listing the terms defined on this page in the given taxonomy much simpler:<ul> {{ range (.GetTerms "tags") }} <li><a href="{{ .Permalink }}">{{ .LinkTitle }}</a></li> {{ end }} </ul>
π New in Hugo Modules
There are several improvements to the tooling used in Hugo Modules. One bug fix, but also some improvements to make it easier to manage:
- β‘οΈ You can now recursively update your modules with
hugo mod get -u ./...
hugo mod clean
will now only clean the cache for the current project and now also takes an optional module path pattern, e.g.hugo mod clean --pattern "github.com/**"
- A new command
hugo mod verify
is added to verify that the module cache matches the hashes ingo.sum
. Run withhugo mod verify --clean
to delete any modules that fail this check.
π See hugo mod.
π Performance
The new features listed above required a structural simplification, and we do watch our weight when doing this. And the benchmarks show that Hugo should, in general, be slightly faster. This is especially true if you're using taxonomies, and the partial rebuilding on content changes should be considerably faster.
Numbers
This release represents 34 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, @QuLogic, and @JaymoKang 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 7 contributions by 4 contributors. A special thanks to @coliff, @bep, @tibnew, and @nerg4l for their work on the documentation site.Hugo now has:
- 41724+ stars
- 439+ contributors
- 299+ themes
Notes
.GetPage "members.md"
(the Page method) will now only do relative lookups, which is what most people would expect.- There have been a slight change of how disableKinds for regular pages: They will not be rendered on its own, but will be added to the site collections.
β¨ Enhancements
Templates
Output
Other
- π Regenerate CLI docs a5ebdf7d @bep
- π Improve "hugo mod clean" dce210ab @bep #6907
- β Add "hugo mod verify" 0b96aba0 @bep #6907
- β Add Page.GetTerms fa520a2d @bep #6905
- β Add a list terms benchmark 7489a864 @bep #6905
- π Use the tree for taxonomy.Pages() b2dcd53e @bep
- β Add some cagegories to the site collections benchmarks 36983e61 @bep
- Do not try to get local themes in "hugo mod get" 20f2211f @bep #6893
- β‘οΈ Update goldmark-highlighting a21a9373 @satotake
- π Support "hugo mod get -u ./..." 775c7c24 @bep #6828
- Introduce a tree map for all content eada236f @bep #6312#6087#6738#6412#6743#6875#6034#6902#6173#6590
- Another benchmark rename e5329f13 @bep
- π Rename the Edit benchmarks 5b145ddc @bep
- π¨ Refactor a benchmark to make it runnable as test 54bdcaac @bep
- β Add benchmark for content edits 1622510a @bep
- β Add "go mod verify" to build scripts 56d0b658 @bep
- β Add git to Dockerfile 75c3787f @JaymoKang
- β‘οΈ Update go.sum 9babb1f0 @bep
- π Rename doWithCommandeer to cfgInit/cfgSetAndInit 8a5124d6 @MarkRosemaker
- β‘οΈ Update golibsass 898a0a96 @bep #6885
- β Shuffle test files before insertion 3b721110 @bep
- β‘οΈ Update to LibSass v3.6.3 40ba7e6d @bep #6862
- β‘οΈ Update Go version requirement 23ea4318 @bep #6853
π Fixes
Templates
Other
- π Fix lazy publishing with publishResources=false 9bdedb25 @bep #6914
- π Fix goMinorVersion on non-final Go releases c7975b48 @QuLogic
- π Fix taxonomy 1b7acfe7 @bep
- π Fix RenderString for pages without content 19e12caf @bep #6882
- π Fix chroma highlight 3c568ad0 @satotake #6877#6856
- π Fix mount with hole regression b78576fd @bep #6854
- π Fix bundle resource ordering regression 18888e09 @bep #6851
- π Fix note about CGO 7f0ebd4a @moorereason
- β‘οΈ You can now recursively update your modules with
-
v0.64.1 Changes
February 09, 2020 -
v0.64.0 Changes
February 04, 2020Hugo 0.64.0 is mostly a bugfix-release, but well worth the download. The main reason this release comes so soon after the previous is my (me being @bep) ongoing work on getting solid support for third-party libraries in Hugo Modules. In particular, this release makes the Hugo server's live-reload work with Turbolinks and similar. Also worth mentioning is that
hugo mod get -u
(without any path) now correctly updates every module imported inconfig.toml
even with Go 1.13.This release represents 16 contributions by 2 contributors to the main Hugo code base.
π Many have also been busy writing and fixing the documentation in hugoDocs,
which has received 6 contributions by 4 contributors. A special thanks to @bep, @peterkappus, @kc0bfv, and @inwardmovement for their work on the documentation site.Hugo now has:
- 41348+ stars
- 439+ contributors
- 289+ themes
β¨ Enhancements
Output
Other
- Mention a "no CGO rule" 29973101 @bep #6842
- β‘οΈ Update to Go 1.13.7 and Go 1.12.16 0792cfa9 @bep #6830
- β Add defer to livereload script tag b3f0674b @bep
- Don't use document.write to inject livereload ef78a0d1 @bep #6507
- β Add a render hook whitespace test 58595864 @bep #6832
- Inject livereload script right after head if possible 8f08cdd0 @bep #6821
- β‘οΈ Update goldmark to v1.1.22 281abb18 @bhavin192
- π Make the build flags shared between sites 0df7bd62 @bep #6789
π Fixes
Other
- π Fix module mount in sub folder 80dd6ddd @bep #6730
- π Fix config environment handling 2bbc865f @bep #6503#6824
- π Fix base template handling with preceding comments f45cb317 @bep #6816
- π Fix "hugo mod get -u" with no arguments 49ef6472 @bep #6826#6825
- And now finally fix the 404 templates 74b6c4e5 @bep #6795
- π Fix 404 with base template regression 8df5d76e @bep #6795
- π Fix baseof with regular define regression f441f675 @bep #6790