diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen+hugoreleaser@gmail.com> | 2018-11-07 10:56:52 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2018-11-07 11:00:25 +0100 |
commit | cbed50e22bbece72cc0510ca8935a281434608d8 (patch) | |
tree | 968786e8a41d6832359198b187a1150c21bc0213 /temp | |
parent | 05ecd8111c08efb327499742542329d5ba245e3d (diff) |
Release 0.51
Diffstat (limited to 'temp')
-rw-r--r-- | temp/0.51-relnotes-ready.md (renamed from temp/0.51-relnotes.md) | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/temp/0.51-relnotes.md b/temp/0.51-relnotes-ready.md index fdfc2fa8e..58b9fbbe7 100644 --- a/temp/0.51-relnotes.md +++ b/temp/0.51-relnotes-ready.md @@ -1,4 +1,19 @@ +Hugo reached [30 000 stars on GitHub](https://github.com/gohugoio/hugo/stargazers) this week, which is a good occasion to do a follow-up release of the great Hugo `0.50`. This is mostly a bug fix release, but it also adds some useful new functionality, two examples are the new template funcs `complement` and `symdiff`. This release also continues the work on improving Hugo's error messages. And with `.Position` now available on shortcodes, you can also improve your own error messages inside your custom shortcodes: + +```bash +{{ with .Get "name" }} +{{ else }} +{{ errorf "missing value for param 'name': %s" .Position }} +{{ end }} +``` + +When the above fails, you will see an `ERROR` log similar to the below: + +```bash +ERROR 2018/11/07 10:05:55 missing value for param name: "/sites/hugoDocs/content/en/variables/shortcodes.md:32:1" +``` + This release represents **31 contributions by 5 contributors** to the main Hugo code base. [@bep](https://github.com/bep) leads the Hugo development with a significant amount of contributions, but also a big shoutout to [@krisbudhram](https://github.com/krisbudhram), [@LorenzCK](https://github.com/LorenzCK), and [@coliff](https://github.com/coliff) for their ongoing contributions. And a big thanks to [@digitalcraftsman](https://github.com/digitalcraftsman) and [@onedrawingperday](https://github.com/onedrawingperday) for their relentless work on keeping the themes site in pristine condition and to [@kaushalmodi](https://github.com/kaushalmodi) for his great work on the documentation site. |