2021-09-12 07:44:34 +00:00
|
|
|
{{- $_hugo_config := `{ "version": 1 }` }}
|
|
|
|
{{- $title := .Get 0 | default (T "Expand-title") }}
|
|
|
|
{{- $content := .Inner | safeHTML }}
|
|
|
|
{{- $expanded := eq (.Get 1) "true" }}
|
2021-09-04 10:05:15 +00:00
|
|
|
<div class="expand
|
|
|
|
{{- if $expanded }} expand-expanded{{ end -}}
|
|
|
|
">
|
2022-02-06 16:10:50 +00:00
|
|
|
{{/* things are getting complicated when search tries to open the expand box while jquery sets the display CSS on the element */}}{{ "" -}}
|
2021-09-04 10:05:15 +00:00
|
|
|
<a class="expand-label" onclick="$t=$(this); if($t.parent('.expand-expanded.expand-marked').length){ $t.next().css('display','none') }else if($t.parent('.expand-marked').length){ $t.next().css('display','block') }else{ $t.next('.expand-content').slideToggle(100); } $t.parent().toggleClass('expand-expanded');">
|
|
|
|
<i class="fas fa-chevron-down"></i>
|
|
|
|
<i class="fas fa-chevron-right"></i>
|
|
|
|
{{ $title }}
|
2021-07-16 21:07:15 +00:00
|
|
|
</a>
|
2021-09-04 10:05:15 +00:00
|
|
|
<div class="expand-content" style="display:
|
|
|
|
{{- if $expanded }} block{{ else }} none{{ end -}}
|
|
|
|
;">
|
2022-02-06 16:10:50 +00:00
|
|
|
{{ $content }}
|
2017-07-30 16:02:07 +00:00
|
|
|
</div>
|
|
|
|
</div>
|