{{ $_hugo_config := `{ "version": 1 }` }} {{ $blockID := printf "td-cover-block-%d" .Ordinal }} {{ $promo_image := (.Page.Resources.ByType "image").GetMatch "**background*" }} {{ $logo_image := (.Page.Resources.ByType "image").GetMatch "**logo*" }} {{ $col_id := .Get "color" | default "dark" }} {{ $image_anchor := .Get "image_anchor" | default "smart" }} {{ $logo_anchor := .Get "logo_anchor" | default "smart" }} {{/* Height can be one of: auto, min, med, max, full. */}} {{ $height := .Get "height" | default "max" }} {{ with $promo_image }} {{ $promo_image_big := (.Fill (printf "1920x1080 %s" $image_anchor)) }} {{ $promo_image_small := (.Fill (printf "960x540 %s" $image_anchor)) }} {{ end }} {{ with .Get "title" }}{{ $title := . }}{{ with $logo_image }}{{ $logo_image_resized := (.Fit (printf "70x70 %s" $logo_anchor)) }}{{ end }}{{ $title | html }}{{ end }} {{ with .Get "subtitle" }}{{ . | html }}{{ end }} {{ .Inner | markdownify}}
{{ . | html }}