mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
First pass at new site template
This commit is contained in:
committed by
Chris Cummer
parent
215c7e571f
commit
d872a28cf7
16
_site/themes/docdock/layouts/shortcodes/expand.html
Normal file
16
_site/themes/docdock/layouts/shortcodes/expand.html
Normal file
@@ -0,0 +1,16 @@
|
||||
<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') ? 'fa fa-chevron-down' : 'fa fa-chevron-right';});});">
|
||||
<i style="font-size:x-small;" class="fa 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>
|
||||
Reference in New Issue
Block a user