{{/* Partial for simple accessible collapse * Example : * partial "components/collapse" (dict "label" "?" "content" "The collapse content") */}} {{ $seed := .content }} {{ $randomId := slicestr (delimit (shuffle (split (md5 $seed) "" )) "") 0 6 }} {{ $optBlock := dict "display" "block" }} {{ $optOrg := dict "markup" "org" }}
{{ .content | printf "%s\n\n

" | markdownify | replaceRE "\n*

\n*$" "" | safeHTML }}
{{ if and (isset . "moreHref") (isset . "moreLabel") }}
{{ .knowMore }} {{ partial "components/content-link" (dict "href" .moreHref "label" .moreLabel) }} {{ end }}