diff options
Diffstat (limited to 'layouts/shortcodes/expand.html')
-rw-r--r-- | layouts/shortcodes/expand.html | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/layouts/shortcodes/expand.html b/layouts/shortcodes/expand.html index 3a1e8a7..dd3007a 100644 --- a/layouts/shortcodes/expand.html +++ b/layouts/shortcodes/expand.html @@ -1,17 +1,16 @@ -{{ $_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}} + {{- $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 -}} +{{- .Inner | safeHTML | markdownify -}} </div> </div>
\ No newline at end of file |