You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
852 B
19 lines
852 B
{{ $id := delimit (shuffle (seq 1 9)) "" }}
|
|
|
|
<div class="collapsible-block {{- with .Get "class" }} {{ . }}{{ end }}">
|
|
<input id="{{ .Get "id" | default $id }}" type="checkbox" {{ if ( eq ( .Get "isCollapsed" ) "true" ) -}} checked
|
|
{{- end }} />
|
|
<label for="{{ .Get "id" | default $id }}">
|
|
{{- with .Get "badge" }}
|
|
<span class="collapsible-block__badge">{{ . }}</span>
|
|
{{- end }}
|
|
{{ if .Get "title" }}<span class="collapsible-block__title">{{ .Get "title" | markdownify }}</span>{{ end }}
|
|
<span class="collapsible-block__toggle" data-label-expand="{{ .Get "expand" | default "△" }}"
|
|
data-label-collapse="{{ .Get "collapse" | default "▽" }}"></span>
|
|
</label>
|
|
<div class="collapsible-block__content">
|
|
<div class="collapsible-block__content-child">
|
|
{{ .Inner | markdownify }}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|