mirror of
https://github.com/thegeeklab/hugo-geekblog.git
synced 2024-11-16 10:10:40 +00:00
12 lines
463 B
HTML
12 lines
463 B
HTML
{{ $id := substr (sha1 .Inner) 0 8 }}
|
|
<div class="gblog-expand">
|
|
<label class="gblog-expand__head flex justify-between" for="{{ $id }}-{{ .Ordinal }}">
|
|
<span>{{ default "Expand" (.Get 0) }}</span>
|
|
<span>{{ default "↕" (.Get 1) }}</span>
|
|
</label>
|
|
<input id="{{ $id }}-{{ .Ordinal }}" type="checkbox" class="gblog-expand__control hidden" />
|
|
<div class="gblog-markdown--nested gblog-expand__content">
|
|
{{ .Inner | markdownify }}
|
|
</div>
|
|
</div>
|