{{- $_hugo_config := `{ "version": 1 }` }} {{- $title := .Get "title" | default (.Get 0) | default (T "Expand-title") }} {{- $expanded := .Get "open" | default (.Get 1) | default false }} {{- if eq (printf "%T" $expanded) "string" }} {{- $expanded = (eq $expanded "true") }} {{- end }} {{- $content := .Inner | safeHTML }}
{{/* things are getting complicated when search tries to open the expand box while jquery sets the display CSS on the element */}}{{ "" -}} {{ $title }}
{{ $content }}