{{- $_hugo_config := `{ "version": 1 }` -}} {{- $col_id := .Get "color" | default .Ordinal -}} {{- $height := .Get "height" | default "auto" -}} {{- $type := .Get "type" | default "" -}} {{- $style := .Get "style" -}} {{- $id_fallback := ( printf "td-block-%d" .Ordinal ) -}} {{- $id := .Get "id" | default (printf "%s%s" $id_fallback "-section" ) -}} {{- $class := .Get "class" -}} {{- $bg := .Get "background-image" -}} {{- if $bg -}} {{- template "shortcodes-blocks_getimage" (dict "name" $bg "ctx" . "target" "bg") }} {{- end -}} {{/* special case Kubernetes overview */}} {{- if eq $class "k8s-overview" -}} {{- partial "kubernetes-overview.html" (dict "id" $id "class" $class "inner" $.Inner ) -}} {{- else -}} {{- $image := $.Scratch.Get "bg" -}} {{ if eq .Page.File.Ext "md" }} {{ .Inner | markdownify }} {{ else }} {{ .Inner | htmlUnescape | safeHTML }} {{ end }} {{- end -}}