diff --git a/layouts/shortcodes/attachments.html b/layouts/shortcodes/attachments.html
index 9f370d72bd..34a7ee7157 100644
--- a/layouts/shortcodes/attachments.html
+++ b/layouts/shortcodes/attachments.html
@@ -1,3 +1,4 @@
+{{- $_hugo_config := `{ "version": 1 }` }}
{{- partial "shortcodes/attachments.html" (dict
"context" .Page
"color" (.Get "color")
diff --git a/layouts/shortcodes/badge.html b/layouts/shortcodes/badge.html
index 7136cf84c5..b3c4163c03 100644
--- a/layouts/shortcodes/badge.html
+++ b/layouts/shortcodes/badge.html
@@ -1,3 +1,4 @@
+{{- $_hugo_config := `{ "version": 1 }` }}
{{- partial "shortcodes/badge.html" (dict
"context" .Page
"color" (.Get "color")
diff --git a/layouts/shortcodes/button.html b/layouts/shortcodes/button.html
index 22ccaeb2fa..1e9941d1ab 100644
--- a/layouts/shortcodes/button.html
+++ b/layouts/shortcodes/button.html
@@ -1,3 +1,4 @@
+{{- $_hugo_config := `{ "version": 1 }` }}
{{- partial "shortcodes/button.html" (dict
"context" .Page
"color" (.Get "color")
diff --git a/layouts/shortcodes/children.html b/layouts/shortcodes/children.html
index 01f2037dba..d000514859 100644
--- a/layouts/shortcodes/children.html
+++ b/layouts/shortcodes/children.html
@@ -1,3 +1,4 @@
+{{- $_hugo_config := `{ "version": 1 }` }}
{{- partial "shortcodes/children.html" (dict
"context" .Page
"containerstyle" (.Get "containerstyle")
diff --git a/layouts/shortcodes/icon.html b/layouts/shortcodes/icon.html
index 55c57c56fc..80e60fd99a 100644
--- a/layouts/shortcodes/icon.html
+++ b/layouts/shortcodes/icon.html
@@ -1,3 +1,4 @@
+{{- $_hugo_config := `{ "version": 1 }` }}
{{- partial "shortcodes/icon.html" (dict
"context" .Page
"icon" (.Get "icon" | default (.Get 0))
diff --git a/layouts/shortcodes/math.html b/layouts/shortcodes/math.html
index 1fe4af9fbc..1e037bac43 100644
--- a/layouts/shortcodes/math.html
+++ b/layouts/shortcodes/math.html
@@ -1,3 +1,4 @@
+{{- $_hugo_config := `{ "version": 1 }` }}
{{- partial "shortcodes/math.html" (dict
"context" .Page
"content" .Inner
diff --git a/layouts/shortcodes/mermaid.html b/layouts/shortcodes/mermaid.html
index 4d22258db0..1ff05523e3 100644
--- a/layouts/shortcodes/mermaid.html
+++ b/layouts/shortcodes/mermaid.html
@@ -1,3 +1,4 @@
+{{- $_hugo_config := `{ "version": 1 }` }}
{{- partial "shortcodes/mermaid.html" (dict
"context" .Page
"content" .Inner