diff --git a/layouts/shortcodes/alert.html b/layouts/shortcodes/alert.html index cae61671..e2001feb 100644 --- a/layouts/shortcodes/alert.html +++ b/layouts/shortcodes/alert.html @@ -1,18 +1,15 @@ {{ if .IsNamedParams }} {{ $.Scratch.Set "icon" (default "triangle-exclamation" (.Get "icon") ) }} - {{ $.Scratch.Set "cardColor" (default "NULL" (.Get "cardColor") ) }} - {{ $.Scratch.Set "iconColor" (default "NULL" (.Get "iconColor") ) }} - {{ $.Scratch.Set "textColor" (default "NULL" (.Get "textColor") ) }} + {{ $.Scratch.Set "cardColor" (.Get "cardColor") }} + {{ $.Scratch.Set "iconColor" (.Get "iconColor") }} + {{ $.Scratch.Set "textColor" (.Get "textColor") }} {{ else }} {{ $.Scratch.Set "icon" (default "triangle-exclamation" (.Get 0) ) }} - {{ $.Scratch.Set "cardColor" "NULL" }} - {{ $.Scratch.Set "iconColor" "NULL" }} - {{ $.Scratch.Set "textColor" "NULL" }} {{ end }}