Welcome to mirror list, hosted at ThFree Co, Russian Federation.

expand.html « shortcodes « layouts - github.com/vjeantet/hugo-theme-docport.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 3a1e8a72b25f4abef958215b5f0ddb67b8c38c1a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{{ $_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=";" 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>