summaryrefslogtreecommitdiff
path: root/layouts/shortcodes/expand.html
blob: f254944c678083925167413eedd66cc5a953d33a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
{{ warnf "Expand shortcode is deprecated. Use 'details' instead." }}
<div class="book-expand">
  <label>
    <div class="book-expand-head flex justify-between">
      <span>{{ default (i18n "Expand") (.Get 0) }}</span>
      <span>{{ default "↕" (.Get 1) }}</span>
    </div>
    <input type="checkbox" class="hidden" />
    <div class="book-expand-content markdown-inner">
      {{ .Inner | markdownify }}
    </div>
  </label>
</div>