github.com/square/finch@v0.0.0-20240412205204-6530c03e2b96/docs/themes/hugo-geekdoc/layouts/shortcodes/expand.html (about) 1 {{ $id := substr (sha1 .Inner) 0 8 }} 2 <div class="gdoc-expand"> 3 <label class="gdoc-expand__head flex justify-between" for="{{ $id }}-{{ .Ordinal }}"> 4 <span>{{ default "Expand" (.Get 0) }}</span> 5 <span>{{ default "↕" (.Get 1) }}</span> 6 </label> 7 <input id="{{ $id }}-{{ .Ordinal }}" type="checkbox" class="gdoc-expand__control hidden" /> 8 <div class="gdoc-markdown--nested gdoc-expand__content"> 9 {{ .Inner | $.Page.RenderString | htmlUnescape | safeHTML }} 10 </div> 11 </div>