---
title: "github.com/gohugoio/hugo v0.171.0 Breaking Changes"
description: "What each github.com/gohugoio/hugo release removed, renamed or changed: 19 breaking changes in 1 version on Go modules, each with its source."
canonical_url: https://since.dev/packages/go/github.com/gohugoio/hugo
last_updated: 2026-12-04
---

# github.com/gohugoio/hugo breaking changes

github.com/gohugoio/hugo v0.171.0 (November 30, 2026) is its newest release with breaking changes, 19 of them. The first: Removed github.com/gohugoio/hugo/cache/dynacache.Options.MaxSize. Every breaking API change we have recorded in github.com/gohugoio/hugo on Go modules: 19 breaking changes in 1 version. Below, its one version with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `v0.171.0`, released November 30, 2026. 

Packages on Go modules run on Go. [Go end of life dates](https://since.dev/calendar/go.md).

## github.com/gohugoio/hugo v0.171.0 breaking changes

github.com/gohugoio/hugo v0.171.0, released November 30, 2026: 19 breaking changes.

- **Removed** `github.com/gohugoio/hugo/cache/dynacache.Options.MaxSize`  

github.com/gohugoio/hugo/cache/dynacache.Options.MaxSize was removed in github.com/gohugoio/hugo v0.171.0 [pkg.go.dev](https://pkg.go.dev/github.com/gohugoio/hugo@v0.171.0)
- **Removed** `github.com/gohugoio/hugo/cache/dynacache.Options.MinMaxSize`  

github.com/gohugoio/hugo/cache/dynacache.Options.MinMaxSize was removed in github.com/gohugoio/hugo v0.171.0 [pkg.go.dev](https://pkg.go.dev/github.com/gohugoio/hugo@v0.171.0)
- **Removed** `github.com/gohugoio/hugo/cache/dynacache.OptionsPartition.CalculateMaxSize`  

github.com/gohugoio/hugo/cache/dynacache.OptionsPartition.CalculateMaxSize was removed in github.com/gohugoio/hugo v0.171.0 [pkg.go.dev](https://pkg.go.dev/github.com/gohugoio/hugo@v0.171.0)
- **Removed** `github.com/gohugoio/hugo/cache/dynacache.OptionsPartition.WeightFraction`  

github.com/gohugoio/hugo/cache/dynacache.OptionsPartition.WeightFraction was removed in github.com/gohugoio/hugo v0.171.0 [pkg.go.dev](https://pkg.go.dev/github.com/gohugoio/hugo@v0.171.0)
- **Removed** `github.com/gohugoio/hugo/common/herrors.ErrFeatureNotAvailable`  

The ErrFeatureNotAvailable error is renamed to ErrExecNotFound. Update code that checks for the old name. [pkg.go.dev](https://pkg.go.dev/github.com/gohugoio/hugo@v0.171.0)
- **Removed** `github.com/gohugoio/hugo/common/hexec.IsNotFound`  

github.com/gohugoio/hugo/common/hexec.IsNotFound was removed in github.com/gohugoio/hugo v0.171.0 [pkg.go.dev](https://pkg.go.dev/github.com/gohugoio/hugo@v0.171.0)
- **Removed** `github.com/gohugoio/hugo/helpers.PathSpec.URLEscape`  

github.com/gohugoio/hugo/helpers.PathSpec.URLEscape was removed in github.com/gohugoio/hugo v0.171.0 [pkg.go.dev](https://pkg.go.dev/github.com/gohugoio/hugo@v0.171.0)
- **Renamed** `github.com/gohugoio/hugo/common/herrors.FeatureNotAvailableError`  

Use github.com/gohugoio/hugo/common/herrors.ExecNotFoundError instead. [pkg.go.dev](https://pkg.go.dev/github.com/gohugoio/hugo@v0.171.0)
- **Renamed** `github.com/gohugoio/hugo/common/herrors.IsFeatureNotAvailableError`  

Use github.com/gohugoio/hugo/common/herrors.IsExecNotFoundError instead. [pkg.go.dev](https://pkg.go.dev/github.com/gohugoio/hugo@v0.171.0)
- **Renamed** `github.com/gohugoio/hugo/resources.NewFeatureNotAvailableTransformer`  

Use github.com/gohugoio/hugo/resources.NewExecNotFoundTransformer instead. [pkg.go.dev](https://pkg.go.dev/github.com/gohugoio/hugo@v0.171.0)
- **Behavior changed**  

Pages with the same language weight are now sorted by Lang as a tiebreaker, which can change page order. [github.com](https://github.com/gohugoio/hugo/releases/tag/v0.171.0)
- **Behavior changed**  

The hash sign (#) is now stripped from published file names, so generated file names differ from before. [github.com](https://github.com/gohugoio/hugo/releases/tag/v0.171.0)
- **Behavior changed**  

Templates without an output format in the file name are now used for all output formats sharing that suffix, not just the first one. [github.com](https://github.com/gohugoio/hugo/releases/tag/v0.171.0)
- **Behavior changed**  

Sitemap, sitemap index and robots.txt templates must now be selected by output format, so a user-provided all.txt no longer renders robots.txt. [github.com](https://github.com/gohugoio/hugo/releases/tag/v0.171.0)
- **Behavior changed** `strings.Truncate`  

strings.Truncate now returns a string for string input instead of HTML-escaped content, which changes output in some formats. [github.com](https://github.com/gohugoio/hugo/releases/tag/v0.171.0)
- **Default changed** `renderHooks.{image,link}.useEmbedded`  

The embedded link and image render hooks now default to fallback for all projects. If you relied on them being disabled, set useEmbedded to "never". [github.com](https://github.com/gohugoio/hugo/releases/tag/v0.171.0)
- **Signature changed** `github.com/gohugoio/hugo/helpers.NewContentSpec`  

Was func NewContentSpec(config.AllProvider, loggers.Logger, afero.Fs, \*hexec.Exec) (\*ContentSpec, error); now func NewContentSpec(config.AllProvider, loggers.Logger, afero.Fs, \*hexec.Exec, highlight.Cache) (\*ContentSpec, error). [pkg.go.dev](https://pkg.go.dev/github.com/gohugoio/hugo@v0.171.0)
- **Signature changed** `github.com/gohugoio/hugo/markup/highlight.New`  

Was func New(Config) Highlighter; now func New(Config, Cache) Highlighter. [pkg.go.dev](https://pkg.go.dev/github.com/gohugoio/hugo@v0.171.0)
- **Signature changed** `github.com/gohugoio/hugo/tpl/strings.Namespace.Truncate`  

Was func Truncate(any, ...any) (template.HTML, error); now func Truncate(any, ...any) (any, error). [pkg.go.dev](https://pkg.go.dev/github.com/gohugoio/hugo@v0.171.0)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
