mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2025-01-18 19:00:24 +00:00
expand: remove undocumented named parameter
This commit is contained in:
parent
a9a081903a
commit
bc1de84fc5
1 changed files with 0 additions and 4 deletions
|
@ -3,11 +3,7 @@
|
||||||
<a class="expand-label" 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';});});">
|
<a class="expand-label" 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 class="fas fa-chevron-right"></i>
|
<i class="fas fa-chevron-right"></i>
|
||||||
{{$expandMessage := T "Expand-title"}}
|
{{$expandMessage := T "Expand-title"}}
|
||||||
{{ if .IsNamedParams }}
|
|
||||||
{{.Get "default" | default $expandMessage}}
|
|
||||||
{{else}}
|
|
||||||
{{.Get 0 | default $expandMessage}}
|
{{.Get 0 | default $expandMessage}}
|
||||||
{{end}}
|
|
||||||
</a>
|
</a>
|
||||||
<div class="expand-content" style="display: none;">
|
<div class="expand-content" style="display: none;">
|
||||||
{{.Inner | safeHTML}}
|
{{.Inner | safeHTML}}
|
||||||
|
|
Loading…
Reference in a new issue