hugo-book-theme/layouts/shortcodes/expand.html

14 lines
438 B
HTML
Raw Permalink Normal View History

2020-04-21 22:30:00 +02:00
{{ warnf "Expand shortcode is deprecated. Use 'details' instead." }}
2019-05-22 14:37:31 +02:00
<div class="book-expand">
<label>
<div class="book-expand-head flex justify-between">
<span>{{ default (i18n "Expand") (.Get 0) }}</span>
2019-05-22 14:37:31 +02:00
<span>{{ default "↕" (.Get 1) }}</span>
</div>
<input type="checkbox" class="hidden" />
2019-05-22 14:37:31 +02:00
<div class="book-expand-content markdown-inner">
{{ .Inner | markdownify }}
2019-05-22 14:37:31 +02:00
</div>
</label>
</div>