mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-23 15:57:57 +00:00
15 lines
637 B
HTML
15 lines
637 B
HTML
|
<div class="expand">
|
||
|
<div class="expand-label" style="cursor: pointer;" onclick="$h = $(this);$h.next('div').slideToggle(100,function () {$h.children('i').attr('class',function () {return $h.next('div').is(':visible') ? 'fa fa-chevron-down' : 'fa fa-chevron-right';});});">
|
||
|
<i style="font-size:x-small;" class="fa fa-chevron-right"></i>
|
||
|
<span>
|
||
|
{{ if .IsNamedParams }}
|
||
|
{{.Get "default" | default "Expand me..."}}
|
||
|
{{else}}
|
||
|
{{.Get 0 | default "Expand me..."}}
|
||
|
{{end}}
|
||
|
</span>
|
||
|
</div>
|
||
|
<div class="expand-content" style="display: none;">
|
||
|
{{.Inner | safeHTML}}
|
||
|
</div>
|
||
|
</div>
|