github.com/mweagle/Sparta@v1.15.0/docs_source/themes/hugo-theme-learn/layouts/shortcodes/expand.html (about)

     1  {{ $_hugo_config := `{ "version": 1 }` }}
     2  <div class="expand">
     3      <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';});});">
     4          <i style="font-size:x-small;" class="fas fa-chevron-right"></i>
     5          <span>
     6          {{$expandMessage := T "Expand-title"}}
     7      	{{ if .IsNamedParams }}
     8      	{{.Get "default" | default $expandMessage}}
     9      	{{else}}
    10      	{{.Get 0 | default $expandMessage}}
    11      	{{end}}
    12      	</span>
    13      </div>
    14      <div class="expand-content" style="display: none;">
    15          {{.Inner | safeHTML}}
    16      </div>
    17  </div>