Guidance on migrating my site to the latest version of hugo

Hey just want to thank everyone for the help. I purchased a sub to Claude Code Pro and man the site update went well. Im still using the same theme cause I still like it. But Im updated to the latest version.

Here is what got fixed:

Details

.Site.GoogleAnalytics (removed in v0.120)

Replaced with .Site.Config.Services.GoogleAnalytics.ID. Falls back to .Site.Params.google_analytics_id.

.Site.DisqusShortname (removed in v0.120)

Replaced with .Site.Config.Services.Disqus.Shortname. Falls back to .Site.Params.disqus_shortname.

.Site.Author (removed in v0.124)

.Site.Author.name and .Site.Author.email replaced with .Site.Params.author and .Site.Params.author_email. Since no email was configured, the managingEditor/webMaster/author RSS fields will simply be omitted.

.URL on page context (removed in v0.120+)

Replaced with .Permalink in rss.xml atom:link href.

.Data.Pages scope change (v0.57+)

On the home page, .Data.Pages no longer returns all site pages — only direct children of the content root. Replaced with .Site.RegularPages so the widget system can find all pages in the content/home/ section. This was causing a blank home page with no widgets rendering.

layouts/partials/header.html - {{ .Hugo.Generator }} → {{ hugo.Generator }} (removed in Hugo 0.124) - .Site.RSSLink / .RSSLink → {{ with .OutputFormats.Get “RSS” }} (removed in Hugo 0.124)
config.toml

  • baseurl → baseURL (modern camelCase)

  • Removed preserveTaxonomyNames = true (removed in Hugo 0.124)

  • Replaced [blackfriday] with [markup.goldmark] — Blackfriday was removed in Hugo 0.122; Goldmark is the default Markdown renderer. unsafe = true preserves raw HTML in content, and
    typographer replaces smartypants
    netlify.toml

  • Updated Hugo version from 0.40.3 (2018) to 0.128.0

  • Replaced the manual curl/tar download script with Netlify’s built-in HUGO_VERSION environment variable

Result

Site builds successfully with no errors (582 pages, 9 home widgets rendering).

I’m really impressed with how far LLM’s have come. Im using it for other things now. Improving my site :smiley: