{{- $context := .context }} {{- $content := .content }} {{- $title := .title | default (T "Expand-title") }} {{- $title = trim $title " " }} {{- $expanded := .open | default false }} {{- if eq (printf "%T" $expanded) "string" }} {{- $expanded = (eq $expanded "true") }} {{- end }} {{- $direction := T "Reading-direction" | default "ltr" }} {{- with $context }}
{{- $c:=""}}{{/* things are getting complicated when search tries to open the expand box while jquery sets the display CSS on the element */}} {{ $title }}
{{ $content | safeHTML }}
{{- end }}