From 9c414904c50efbaff70fdf10a0c50de8231769dc Mon Sep 17 00:00:00 2001
From: Andreas Deininger <andreas@deininger.net>
Date: Mon, 20 Jan 2025 23:29:41 +0100
Subject: [PATCH] Fix error when building user guide with latest hugo version
 0.141.0 (#2177)

---
 layouts/partials/scripts/mermaid.html | 2 +-
 netlify.toml                          | 2 +-
 package.json                          | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/layouts/partials/scripts/mermaid.html b/layouts/partials/scripts/mermaid.html
index 62e8c072c0..99f7fbe08f 100644
--- a/layouts/partials/scripts/mermaid.html
+++ b/layouts/partials/scripts/mermaid.html
@@ -1,7 +1,7 @@
 {{ $version := .Site.Params.mermaid.version | default "latest" -}}
 
 {{ $cdnurl := printf "https://cdn.jsdelivr.net/npm/mermaid@%s/dist/mermaid.esm.min.mjs" $version -}}
-{{ with resources.GetRemote $cdnurl -}}
+{{ with try (resources.GetRemote $cdnurl) -}}
   {{ with .Err -}}
     {{ errorf "Could not retrieve mermaid script from CDN. Reason: %s." . -}}
   {{ end -}}
diff --git a/netlify.toml b/netlify.toml
index 46557bf34f..442d5a2167 100644
--- a/netlify.toml
+++ b/netlify.toml
@@ -6,7 +6,7 @@ publish = "userguide/public"
 command = "npm run docs-install && npm run build:preview"
 
 [build.environment]
-GO_VERSION = "1.22.5"
+GO_VERSION = "1.23.5"
 HUGO_THEME = "repo"
 
 [context.production]
diff --git a/package.json b/package.json
index dcfd7cfeb9..e15bb23581 100644
--- a/package.json
+++ b/package.json
@@ -40,7 +40,7 @@
   },
   "devDependencies": {
     "cpy-cli": "^5.0.0",
-    "hugo-extended": "^0.140.2",
+    "hugo-extended": "^0.141.0",
     "netlify-cli": "^18.0.0",
     "npm-check-updates": "^17.1.13",
     "prettier": "^3.4.2"