{{ end }}
{{ $file | readFile | safeHTML }}
diff --git a/layouts/shortcodes/mermaid.html b/layouts/shortcodes/mermaid.html
index 2a8f134781..c7af39c62c 100644
--- a/layouts/shortcodes/mermaid.html
+++ b/layouts/shortcodes/mermaid.html
@@ -1,5 +1,6 @@
{{- $_hugo_config := `{ "version": 1 }` }}
-
+{{- $align := .Get "align" | default "center" }}
+
{{- safeHTML .Inner -}}
{{- .Page.Store.Set "htmlHasMermaid" true }}
\ No newline at end of file
diff --git a/layouts/shortcodes/siteparam.html b/layouts/shortcodes/siteparam.html
index 20cd2ca3b7..d4cbd07da9 100644
--- a/layouts/shortcodes/siteparam.html
+++ b/layouts/shortcodes/siteparam.html
@@ -1,4 +1,4 @@
-{{- $paramName := (.Get 0) -}}
+{{- $paramName := .Get "name" | default (.Get 0) -}}
{{- $siteParams := .Site.Params -}}
{{- with $paramName -}}
{{- with $siteParams -}}
diff --git a/layouts/shortcodes/tabs.html b/layouts/shortcodes/tabs.html
index d7be76d629..bc4c56158f 100644
--- a/layouts/shortcodes/tabs.html
+++ b/layouts/shortcodes/tabs.html
@@ -1,5 +1,5 @@
{{- with .Inner }}{{/* don't do anything, just call it */}}{{ end }}
-{{- $groupId := default "default" (.Get "groupId") }}
+{{- $groupId := .Get "groupId" | default "default" }}
{{- range $idx, $tab := .Scratch.Get "tabs" }}