{{/* Hugo Blox: CTA Image Paragraph */}} {{/* Documentation: https://hugoblox.com/blocks/ */}} {{/* License: https://github.com/HugoBlox/hugo-blox-builder/blob/main/LICENSE.md */}} {{/* Initialise */}} {{ $page := .wcPage }} {{ $block := .wcBlock }}
{{ range $idx, $item := $block.content.items }} {{ $title := .title | emojify | $page.RenderString }} {{ $text := .text | emojify | $page.RenderString }} {{ $image_path := path.Join "media" .image }} {{ $image := resources.GetMatch $image_path }} {{ with $image }} {{ $image = $image.Process "Resize 800x webp" }} {{ else }} {{ errorf "%s uses the `cta-image-paragraph` blox which specifies a non-existent `image` at `assets/%s`. Please add the image to this folder and try again." $page.File.Path $image_path }} {{ end }}
{{$title | plainify}}

{{$title}}

{{$text}}

{{ $icon := .feature_icon | default "check" }} {{ if .features }}
    {{ range .features }}
  • {{ partial "functions/get_icon" (dict "name" $icon "attributes" `class="inline-block pr-3" style="height: 1em;"`) }} {{ . | markdownify }}
  • {{ end }}
{{ end }} {{ with .button }} {{.text}} {{ end }}
{{ end }}