{{- $allthemevariants := partialCached "_relearn/themeVariants.gotmpl" site.Home }} {{- $themevariants := slice }} {{- range $allthemevariants }} {{- if not .hidden }} {{- $themevariants = $themevariants | append . }} {{- end }} {{- end }} {{- $showvariantswitch := gt (int (len $themevariants)) 1 }} {{- if $showvariantswitch }} {{- $icon := .element.icon | default "paint-brush" }} {{- if and $icon (not (findRE ".*?\\bfa-\\w.*?" $icon)) }} {{- $icon = printf "fa-fw fas fa-%s" $icon }} {{- end }}