2023-08-02 23:14:55 +01:00
|
|
|
{{- $title := .Get "title" | default "" -}}
|
|
|
|
{{- $closed := eq (.Get "closed") "true" | default false -}}
|
|
|
|
|
2024-02-20 17:59:31 -05:00
|
|
|
<details class="last-of-type:hx-mb-0 hx-rounded-lg hx-bg-neutral-50 dark:hx-bg-neutral-800 hx-p-2 hx-mt-4 hx-group" {{ if not $closed }}open{{ end }}>
|
|
|
|
<summary class="hx-flex hx-items-center hx-cursor-pointer hx-select-none hx-list-none hx-p-1 hx-rounded hx-transition-colors hover:hx-bg-gray-100 dark:hover:hx-bg-neutral-800 before:hx-mr-1 before:hx-inline-block before:hx-transition-transform before:hx-content-[''] dark:before:hx-invert rtl:before:hx-rotate-180 group-open:before:hx-rotate-90">
|
|
|
|
<strong class="hx-text-lg">{{ $title | markdownify }}</strong>
|
2023-08-02 23:14:55 +01:00
|
|
|
</summary>
|
2024-02-20 17:59:31 -05:00
|
|
|
<div class="hx-p-2 hx-overflow-hidden">
|
2023-08-02 23:14:55 +01:00
|
|
|
{{ .InnerDeindent | markdownify }}
|
|
|
|
</div>
|
|
|
|
</details>
|