diff --git a/layouts/shortcodes/mermaid.html b/layouts/shortcodes/mermaid.html
index a6a61a5de5..287bc380c1 100644
--- a/layouts/shortcodes/mermaid.html
+++ b/layouts/shortcodes/mermaid.html
@@ -1 +1,2 @@
+{{ $_hugo_config := `{ "version": 1 }` }}
{{ safeHTML .Inner }}
diff --git a/layouts/shortcodes/notice.html b/layouts/shortcodes/notice.html
index 936f68a3ac..0e3324719b 100644
--- a/layouts/shortcodes/notice.html
+++ b/layouts/shortcodes/notice.html
@@ -1 +1,2 @@
+{{ $_hugo_config := `{ "version": 1 }` }}
{{ .Inner }}
diff --git a/netlify.toml b/netlify.toml
index bf02f0d794..12bd7ac6fc 100644
--- a/netlify.toml
+++ b/netlify.toml
@@ -5,7 +5,7 @@
[build.environment]
HUGO_THEME = "repo"
HUGO_THEMESDIR = "/opt/build"
- HUGO_VERSION = "0.50"
+ HUGO_VERSION = "0.55.5"
[context.production.environment]
HUGO_BASEURL = "https://learn.netlify.com/"