{{ if isset .Site.Params "features" }} {{ if .Site.Params.features.enable }} {{ if gt (len .Site.Data.features) 0 }}
{{ range $index, $element := sort .Site.Data.features "weight" }} {{ if eq (mod $index 3) 0 }}
{{ end }} {{ if or (eq (mod $index 3) 2) (eq $index (sub (len $.Site.Data.features) 1 )) }}
{{ end }} {{ end }}

{{ end }} {{ end }} {{ end }}