expand.html 466 B

123456789101112
  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 }}
  10. </div>
  11. </div>