mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-30 03:03:09 +00:00
17 lines
No EOL
729 B
HTML
17 lines
No EOL
729 B
HTML
{{ $_hugo_config := `{ "version": 1 }` }}
|
|
<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') ? 'fas fa-chevron-down' : 'fas fa-chevron-right';});});">
|
|
<i style="font-size:x-small;" class="fas fa-chevron-right"></i>
|
|
<span>
|
|
{{$expandMessage := T "Expand-title"}}
|
|
{{ if .IsNamedParams }}
|
|
{{.Get "default" | default $expandMessage}}
|
|
{{else}}
|
|
{{.Get 0 | default $expandMessage}}
|
|
{{end}}
|
|
</span>
|
|
</div>
|
|
<div class="expand-content" style="display: none;">
|
|
{{.Inner | safeHTML}}
|
|
</div>
|
|
</div> |