Changelog:
This is a bug-fix release with one important fix. There have been
reports about infrequent paginator crashes when running the Hugo
server since 0.55.0. The reason have been narrowed down to that of
parallel rebuilds. This isn't a new thing, but the changes in 0.55.0
made it extra important to serialize the page initialization. This
release fixes that by protecting the Build method with a lock when
running in server mode. 95ce2a40 @bep #5885#5968
Changelog:
0.55.0
This is a bug-fix release with a couple of important fixes.
Enhancements
Templates
Provide more detailed errors in Where f76e5011 @moorereason
Other
Regenerate docs helper cee181c3 @bep
Update blackfriday to v1.5.2 1cbb501b @dbirks
Fixes
Templates
Fix nil compare in eq/ne for interface values 66b143a0 @bep #5905
Fix hugo package name and add godocs 4f93f8c6 @moorereason
Output
Fix permalink in sitemap etc. when multiple permalinkable output formats 6b76841b @bep #5910
Core
Fix PrevInSection/NextInSection for nested sections bcbed4eb @bep #5883
Other
Fix concurrent initialization order 009076e5 @bep #5901
0.55.4
This is a bug-fix release with a couple of important fixes.
Enhancements
Core
Avoid recloning of shortcode templates 69a56420 @bep #5890
No links for bundled pages 0775c98e @bep #5882
Other
Avoid rebuilding the Translations map for every lookup 4756ec3c @bep #5892
Init mem profile at the end 4c3c5120 @bep
Fixes
Core
Fix shortcode version=1 logic 33c73811 @bep #5831
0.55.3
This is a bug-fix release with a couple of important fixes.
Enhancements
Templates
Return error on invalid input in in 7fbfedf0 @bep #5875
Make Pages etc. work with the in func 06f56fc9 @bep #5875
Make Pages etc. work in uniq d7a67dcb @bep #5852
Core
Add some OutputFormats.Get tests 7aeeb60d @bep #5877
Add some integration tests for in/uniq using Pages 6c80acbd @bep #5875#5852
Other
Regenerate docs helper 75b16e30 @bep
Replace IsDraft with Draft in list command 3e421bd4 @bep #5873
Fixes
Output
Fix links for non-HTML output formats c7dd66bf @bep #5877
Fix menu URL when multiple permalinkable output formats ea529c84 @bep #5849
0.55.2
This is a bug-fix release with a couple of important fixes.
Enhancements
Templates
Handle late transformation of templates 2957795f @bep #5865
Core
Add more tests for Permalinkable 35f41834 @bep #5849
Fixes
Core
Fix Pages reinitialization on rebuilds 9b17cbb6 @bep #5833
Fix shortcode namespace issue 56550d1e @bep #5863
Fix false WARNINGs in lang prefix check 7881b096 @bep #5860
Fix bundle resource publishing when multiple output formats 49d0a826 @bep #5858
Fix panic for unused taxonomy content files b799b12f @bep #5847
Fix dates for sections with dates in front matter 70148672 @bep #5854
Other
Fix WeightedPages in union etc. f2795d4d @bep #5850
0.55.1
This is a bug-fix release with a couple of important fixes.
Notes
Replace deprecated .GetParam usage 27a8049d @bep #5834
Enhancements
Core
Add a test for parent's resources in shortcode 8d7607ae @bep #5833
Other
Remove the space in . RelPermalink 7966c0b5 @yihui
Fixes
Core
Fix simple menu config 9e9a1f92 @bep
Other
Fix 4d425a86 @bep
Fix paginator refresh on server change f7375c49 @bep #5838
Fix .RSSLinke deprecation message 3b86b4a9 @bep #4427
0.55.0
Hugo 0.55 is the early Easter Egg Edition with lots of great improvements
and fixes. The original motivation for this release was to prepare for
Issue #5074, but the structural changes needed for that paved the way for
lots of others. Please study the list of changes below, and especially
the Notes section, but some headlines include:
Changelog:
Enhancements
Templates
Adjust tests ddc6d4e3 @bep #5643
Prevent getJSON and getCSV fetch failure from aborting build 6a2bfcbe @anthonyfok #5643
Core
Expand TestPageWithEmoji to cover '+', '-' and '_' too 2a9060a8 @anthonyfok #5635
Restore 0.48 slash handling in taxonomies 40ffb048 @bep #5571
Other
Use official semver even for main releases fab41f42 @bep #5639
Add test for --configDir 59d87044 @bep #5662
Ignore unknown config files in config dir 3244cb3b @bep #5646
Store supported config formats in a variable d9282cf9 @tryzniak
Bump to Go 1.11.5 8ed2a1ca @bep #5654
Update Afero e8596139 @bep #5650
Accept hyphen and plus sign in emoji detection 3038464e @anthonyfok #5635
Support numeric sort in ByParam 26f75edb @tryzniak #5305
Make hugo server -t work again db3c49d0 @tryzniak #5569#5061#4868
Add configFile(s) back to the watch list after RENAME event too e3cb8e6c @anthonyfok #5205
Remove historical rssURI config 55251aa8 @mywaiting
Use subtests with server_test.go 843fcd19 @tryzniak
Move resource interfaces into its own package ce8a09a4 @bep
Move resource processors into sub-packages 669ada43 @bep
Update _index.md 50745122 @vrMarc
Update go.sum 0584432b @bep
Update Chroma cc351958 @bep #4993
Make docshelper run again c24f3ae2 @bep #5568
Fixes
Templates
Fix reflect 9e4f9e0b @moorereason #5564
Other
Fix some inline shortcode issues c52045bb @bep #5645#5653
Fix OpenGraph image fallback to site params 526b5b1c @statik
Fix Params case handling in the new site global e1a66c73 @bep #5615
cache/namedmemcache: Fix data race 3f3187de @bep
The main new features in this release are:
* You can now split your configuration into directories per environment.
Hugo did support multiple configuration files before this release, but
it was hard to manage for bigger sites, especially those with multiple
languages. With this we have also formalized the concept of an
environment; the defaults are production (when running hugo) or
development (when running hugo server) but you can create any
environment you like. We will update the documentation, but all the
details are in this issue. Also, see this PR for how the refactored
configuration for the Hugo website looks like.
* transform.Unmarshal (see
the documentation is a new and powerful template function that can
turn Resource objects or strings with JSON, TOML, YAML or CSV into
maps/arrays.
* Two new global variables in site and hugo. hugo gives you
version info etc. ({{ hugo.Version }}, {{ hugo.Environment }}), but
the site is probably more useful, as it allows you to access the
current site's variables (e.g. {{ site.RegularPages }}) without any
context (or ".").
This version is also the fastest to date. A site building benchmark
shows around 10% faster, but that depends on the site. The important
part here is that we're not getting slower. It's quite a challenge
to consistently add significant new functionality and simultaneously
improve performance. It's like not gaining weight during Christmas. We
also had a small performance boost in version 0.50. A user then reported
that his big and complicated site had a 30% reduction in build time.
This is important to us, one of the core features. It's in the slogan:
"The world's â fastest framework for building websites."
Changelog:
The two big new items in this release is Inline Shortcodes and Consolidated File Caches. In Hugo we really care about build speed, and caching is important. With this release, you get much better control over your cache configuration, which is especially useful when building on a Continous Integration server (Netlify, CircleCI or similar). Inline Shortcodes was implemented to help the Bootstrap project move their documentation site to Hugo. Note that this feature is disabled by default. To enable, set enableInlineShortcodes = true in your site config. Worth mentioning is also the new param shortcode, which looks up the param in page front matter with the site's parameter as a fall back.
This release represents 33 contributions by 7 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, @emirb, and @allizad 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 10 contributions by 4 contributors. A special thanks to @budparr, @bep, @allizad, and @funkydan2 for their work on the documentation site.
Hugo now has:
30595+ stars
441+ contributors
270+ themes
Enhancements
Templates
Add tests ed698e94 @moorereason
Regenerate templates 89e2716d @bep
Add "param" shortcode f37c5a25 @bep #4010
Add float64 support to where 112461fd @moorereason #5466
Core
Fall back to title in ByLinkTitle sort a9a93d08 @bep #4953
Improve nil handling in IsDescendant and IsAncestor b09a4033 @bep #5461
Other
Remove duplicate mapstructure depdendency 7e75aeca @bep
Add dependency list to README e14e0b19 @bep
Document inline shortcodes aded0f25 @bep #4011
Add inline shortcode support bc337e6a @bep #4011
Include drafts in convert command dcfeed35 @bep #5457
Handle themes in the new file cache (for images, assets) f9b4eb4f @bep #5460
Add tests for permalink on Resource with baseURL with path 12742bac @bep #5226
Add a comment about file mode for new files fabf026f @bep #5434
Add a :project placeholder 94f0f7e5 @bep #5439
Add a cache prune func 3c29c5af @bep #5439
Add a filecache root dir 33502667 @bep
Use time.Duration for maxAge d3489eba @bep #5438
Split implementation and config into separate files 17d7ecde @bep
Update to LibSASS 3.5.5 e4b25728 @bep #5432#5435
More spelling corrections 782dd158 @bep
Spelling corrections aff9c091 @bep
Remove appveyor fdd4a768 @bep
Document the new file cache abeeff13 @bep #5404
Add a consolidated file cache f7aeaa61 @bep #5404
Add Windows build config to Travis 7d78a2af @emirb
Add Elasticsearch/bonsai.io to services doc. c0b3a1af @allizad
Fixes
Templates
Fix whitespace issue aba2647c @max-arnold
Fix test to pass with gccgo a8cb1b07 @ianlancetaylor
Other
Fix handling of commented out front matter 7540a628 @bep #5478
Fix when only shortcode and then summary 94ab125b @bep #5464
Fix ignored --config flag with 'new' command e82b2dc8 @krisbudhram
Fix Permalink for resource, baseURL with path and canonifyURLs set 5df2b79d @bep #5226