# Hugo v0.166.0 released

**URL:** <https://discourse.gohugo.io/t/hugo-v0-166-0-released/57536>\
**Category:** Announcements\
**Created:** [September 9, 2026, 4:15pm UTC](https://discourse.gohugo.io/t/hugo-v0-166-0-released/57536 "2026-09-09T16:15:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bep](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/bep/32/3332_2.png) [@bep](https://discourse.gohugo.io/u/bep)\
**Post date:** [September 9, 2026, 4:15pm UTC](https://discourse.gohugo.io/t/hugo-v0-166-0-released/57536/1 "2026-09-09T16:15:33Z")

</div>

> **[Release v0.166.0 · gohugoio/hugo](https://github.com/gohugoio/hugo/releases/tag/v0.166.0)**
>
> Note
> 
> tpl/transform: Bump fileCacheEntryVersion in transform.ToMath (note) 8d88b8b @bep #15267
> resources/images: Bump formatVersionNumbers.PNG and fix version cache busting for images.Filter (note)...

---

<div class="post-metadata">

**Author:** ![bep](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/bep/32/3332_2.png) [@bep](https://discourse.gohugo.io/u/bep)\
**Post date:** [September 9, 2026, 4:15pm UTC](https://discourse.gohugo.io/t/hugo-v0-166-0-released/57536/2 "2026-09-09T16:15:44Z")

</div>

Pinned globally on September 9, 2026, 4:15pm UTC



---

<div class="post-metadata">

**Author:** ![martignoni](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/martignoni/32/5756_2.png) [@martignoni](https://discourse.gohugo.io/u/martignoni)\
**Post date:** [September 9, 2026, 5:28pm UTC](https://discourse.gohugo.io/t/hugo-v0-166-0-released/57536/3 "2026-09-09T17:28:22Z")

</div>

**Hugo 0.166.0 packages**

[Brew](https://github.com/Homebrew/homebrew-core/blob/master/Formula/h/hugo.rb) - Hugo Brew package for macOS and Linux - **updated** ✅  
[Snap Package](https://snapcraft.io/hugo/) - Hugo Snap package for Linux - **not yet updated** ❌  
[Docker/CI Image](https://github.com/gohugoio/hugo/pkgs/container/hugo) - Hugo Docker image for Continuous Integration - **updated** ✅  
[FreshPort](https://www.freshports.org/www/gohugo/) - Hugo FreshPort package for FreeBSD - **not yet updated** ❌  
[Debian](https://packages.debian.org/hugo) - **updated** ✅  
[Ubuntu](https://packages.ubuntu.com/hugo) - **not yet updated** ❌  
[Fedora Copr](https://copr.fedorainfracloud.org/coprs/daftaupe/hugo/packages/) - Hugo RPM package for Fedora and CentOS - **not yet updated** ❌  
[Chocolatey](https://chocolatey.org/packages/hugo-extended) - Hugo Chocolatey package for Windows - **updated** ✅  
[Scoop](https://github.com/ScoopInstaller/Main/blob/master/bucket/hugo-extended.json) - Hugo Scoop package for Windows - **updated** ✅

---

<div class="post-metadata">

**Author:** ![bep](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/bep/32/3332_2.png) [@bep](https://discourse.gohugo.io/u/bep)\
**Post date:** [September 10, 2026, 8:56am UTC](https://discourse.gohugo.io/t/hugo-v0-166-0-released/57536/4 "2026-09-10T08:56:35Z")

</div>

I have added more to the intro sections of the release notes now (I was in a bit of a rush yesterday):

> **[Release v0.166.0 · gohugoio/hugo](https://github.com/gohugoio/hugo/releases/tag/v0.166.0)**
>
> This release is mostly about hardening and bug fixes, but there are some notable changes:
> 
> .Render now takes an optional context argument: {{ .Render "view" $ctx }}, mirroring the partial API. This...

A lot of little changes and improvements, my personal favourite: That you now can use the `return` keyword in any template and can be used anywhere inside those templates.
