{{ $error := false -}} {{ if partial "utilities/IsInvalidArgs.html" (dict "structure" "mark" "args" .Params) }} {{ errorf "Invalid arguments: %s" .Position -}} {{ $error = true }} {{ end }} {{ $color := .Get "color" | default "" -}} {{- $class := .Get "class" | default "" -}} {{- if not $error -}} {{- if $color }}{{ $class = printf "%s text-bg-%s" $class $color }}{{ end -}} {{ trim .Inner " \r\n" | .Page.RenderString -}} {{- end -}}