{{ $parent := .Parent }} {{ $groupID := "" }} {{ $mode := "collapse" }} {{ if $parent }} {{ $groupID = delimit (slice "accordion" (partial "functions/uid.html" $parent)) "-" }} {{ $mode = $parent.Get "mode" | default "collapse" }} {{ else }} {{ $groupID = delimit (slice "accordion" (partial "functions/uid.html" .)) "-" }} {{ end }} {{ $id := delimit (slice "accordion-item" (partial "functions/uid.html" .)) "-" }} {{ $title := .Get "title" | default (.Get "header") }} {{ $open := .Get "open" | default false }} {{ $isOpen := or (eq $open true) (eq $open "true") }}
{{- .Inner | markdownify -}}