Skip to content
Snippets Groups Projects
Commit 2338fc3e authored by alexisben's avatar alexisben
Browse files

fix: handle empty testimonials block

parent 05603c84
No related branches found
No related tags found
No related merge requests found
......@@ -4,8 +4,10 @@
{{- $is_carousel := false -}}
{{- with .block.data -}}
{{ if gt (len .testimonials) 1 }}
{{- $is_carousel = true -}}
{{ if .testimonials }}
{{ if gt (len .testimonials) 1 }}
{{- $is_carousel = true -}}
{{ end }}
{{ end }}
<section class="block block-testimonials{{ if $title }} block-with-title{{ end }}{{ if $is_carousel}} with-carousel{{ end }}" id="block-{{ $position }}">
<div class="container">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment