Changelog History
Page 7
-
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
_buildfront 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: trueNote 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
GetTermsmethod 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 cleanwill 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 verifyis added to verify that the module cache matches the hashes ingo.sum. Run withhugo mod verify --cleanto 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.tomleven 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
-
v0.63.0 Changes
January 23, 2020Hugo
0.63is, in general, considerably faster and more memory effective (see the site-building benchmarks below comparing it tov0.62). Not that we are particularly concerned about Hugo's build speed. We leave that to others. But we would hate if it got slower, so we have a comprehensive benchmark suite. And when we needed to simplify the template handling code to solve a concurrency issue, it also became more effective. And as a bonus, we also finally got the base template lookup order that you really, really wanted!name old time/op new time/op delta SiteNew/Bundle\_with\_image-16 13.2ms Β± 2% 10.7ms Β± 0% -19.13% (p=0.029 n=4+4) SiteNew/Bundle\_with\_JSON\_file-16 13.1ms Β± 0% 10.8ms Β± 0% -17.50% (p=0.029 n=4+4) SiteNew/Tags\_and\_categories-16 47.7ms Β± 1% 43.7ms Β± 2% -8.43% (p=0.029 n=4+4) SiteNew/Canonify\_URLs-16 52.3ms Β± 6% 49.5ms Β± 7% ~ (p=0.200 n=4+4) SiteNew/Deep\_content\_tree-16 77.7ms Β± 0% 71.6ms Β± 1% -7.84% (p=0.029 n=4+4) SiteNew/Many\_HTML\_templates-16 44.0ms Β± 2% 37.5ms Β± 1% -14.79% (p=0.029 n=4+4) SiteNew/Page\_collections-16 58.4ms Β± 1% 52.5ms Β± 1% -10.09% (p=0.029 n=4+4) name old alloc/op new alloc/op delta SiteNew/Bundle\_with\_image-16 3.81MB Β± 0% 2.22MB Β± 0% -41.57% (p=0.029 n=4+4) SiteNew/Bundle\_with\_JSON\_file-16 3.60MB Β± 0% 2.01MB Β± 0% -44.09% (p=0.029 n=4+4) SiteNew/Tags\_and\_categories-16 19.3MB Β± 1% 14.2MB Β± 0% -26.52% (p=0.029 n=4+4) SiteNew/Canonify\_URLs-16 70.7MB Β± 0% 69.0MB Β± 0% -2.30% (p=0.029 n=4+4) SiteNew/Deep\_content\_tree-16 37.0MB Β± 0% 31.2MB Β± 0% -15.78% (p=0.029 n=4+4) SiteNew/Many\_HTML\_templates-16 17.5MB Β± 0% 10.6MB Β± 0% -39.68% (p=0.029 n=4+4) SiteNew/Page\_collections-16 25.8MB Β± 0% 21.2MB Β± 0% -17.80% (p=0.029 n=4+4) name old allocs/op new allocs/op delta SiteNew/Bundle\_with\_image-16 52.3k Β± 0% 26.1k Β± 0% -50.08% (p=0.029 n=4+4) SiteNew/Bundle\_with\_JSON\_file-16 52.3k Β± 0% 26.1k Β± 0% -50.06% (p=0.029 n=4+4) SiteNew/Tags\_and\_categories-16 337k Β± 1% 272k Β± 0% -19.20% (p=0.029 n=4+4) SiteNew/Canonify\_URLs-16 422k Β± 0% 395k Β± 0% -6.33% (p=0.029 n=4+4) SiteNew/Deep\_content\_tree-16 400k Β± 0% 314k Β± 0% -21.41% (p=0.029 n=4+4) SiteNew/Many\_HTML\_templates-16 247k Β± 0% 143k Β± 0% -41.84% (p=0.029 n=4+4) SiteNew/Page\_collections-16 282k Β± 0% 207k Β± 0% -26.31% (p=0.029 n=4+4)This release represents 35 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 @hcwong, @flother, and @RemcodM 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 13 contributions by 10 contributors. A special thanks to @bep, @jeffscottlevine, @davidsneighbour, and @nicfits for their work on the documentation site.Hugo now has:
- 41091+ stars
- 440+ contributors
- 286+ themes
Notes
- π
.Typeon-page now returns an empty string if not set in the front matter or if.Sectionreturns empty. See #6760. - π Baseof template (e.g.
baseof.html) lookup order is completely revised/expanded. See base template lookup order. We now do template resolution at execution time following the same rules as the template it applies to (e.g._default/single.html). This is an obvious improvement and your site should work as before. - π Shortcode params now supports params with raw string literals (strings surrounded with ``) that supports newlines.
Note: In a base template (e.g. baseof.html), the first template block must be a define.
β¨ Enhancements
Templates
- Rework template management to get rid of concurrency issues c6d650c8 @bep #6716#6760#6768#6778
- Put Go's internal template funcs in Hugo's map 1cf23541 @bep #6717
Output
Core
- β Disable a test assertion on ARM 836c2426 @bep #6655
- Some more benchmark adjustments ddd75f21 @bep
- Adjust site benchmarks 4ed6ebef @bep
- β Add a benchmark with lots of templates ea05c0e8 @bep
Other
- π Regen docs helper 4f466db6 @bep
- π Allow multiple arguments in ne/ge/gt/le/lt functions Treat op arg1 arg2 arg3 ... as (arg1 op arg2) && (arg1 op arg3) and so on for ne/ge/gt/le/lt. 0c251be6 @le0tan #6619
- β‘οΈ Update go-org 8585b388 @niklasfasching
- β Add support for newline characters in raw string shortcode 21ca2e9c @hcwong
- β‘οΈ Update github.com/alecthomas/chroma 3efa1d81 @ghislainbourgeois
- β‘οΈ Update minify to v2.7.2 65ec8fe8 @bep #6756
- β‘οΈ Update Goldmark to v1.1.21 d3e8ab2e @flother #6571
- π Allow raw string literals in shortcode params da814556 @hcwong
- β‘οΈ Update github.com/gohugoio/testmodBuilder 0c0bb372 @bep
- β‘οΈ Update direct dependencies 94cfdf6b @bep #6719
- β‘οΈ Update to new CSS config 45138017 @bep #6719
- β‘οΈ Update to Minify v2.7.0 56354a63 @bep
- β Add support for freebsd/arm64 aead8108 @dmgk #6719
- π Update releasenotes_writer.go df6e9efd @bep
- Adjust auto ID space handling 9b6e6146 @bep #6710
- Document the new autoHeadingIDType setting d62ede8e @bep #6707#6616
- π Regenerate docshelper 81b7e48a @bep #6707#6616
- β Add an optional Blackfriday auto ID strategy 16e7c112 @bep #6707
- π Make the autoID type config a string 8f071fc1 @bep #6707
- markup/goldmark: Simplify code 5ee1f087 @bep
- π Make auto IDs GitHub compatible a82d2700 @bep #6616
- π Support files in content mounts ff6253bc @bep #6684#6696
- β‘οΈ Update alpine base image in Dockerfile to 3.11 aa4ccb8a @RemcodM
π Fixes
Templates
Core
- π Fix relative .Page.GetPage from bundle 196a9df5 @bep #6705
- π Fix inline shortcode regression 5509954c @bep #6677
Other
-
v0.62.2 Changes
January 05, 2020π The main driving force behind these patch releases in the new year has been getting a good story with portable links between GitHub and Hugo, using the new render hooks introduced in Hugo 0.62.0. And all was mostly well until a Hugo user asked about anchor links. Which is, when you look into it, a slightly sad Markdown story. They have been talking about anchors in Markdown over at the CommonMark forum for the last six years, but it has come to nothing. The current situation is that some Markdown engines support the
{#anchorName}attribute syntax (Hugo's Goldmark does, GitHub does not) and for those that support auto-generation of IDs, the implementation often varies. And this makes for poor portability.π§ To improve this, Hugo has now reverse-engineered GitHub's implementation and made that the default strategy for generation or header IDs. We understand that this isn't everyone's cup of tea, so you can configure the behaviour to be one of
github,github-ascii(some client-libraries have Unicode issues) orblackfriday(which will match how it behaved before Hugo 0.60).- hugolib: Fix relative .Page.GetPage from bundle 196a9df5 @bep #6705
- markup/goldmark: Adjust auto ID space handling 9b6e6146 @bep #6710
- π docs: Document the new autoHeadingIDType setting d62ede8e @bep #6707#6616
- π docs: Regenerate docshelper 81b7e48a @bep #6707#6616
- markup/goldmark: Add an optional Blackfriday auto ID strategy 16e7c112 @bep #6707
- markup/goldmark: Make the autoID type config a string 8f071fc1 @bep #6707
- markup/goldmark: Simplify code 5ee1f087 @bep
- markup/goldmark: Make auto IDs GitHub compatible a82d2700 @bep #6616