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

13 lines
376 B
HTML
Raw Normal View History

2019-05-22 14:37:31 +02:00
<div class="book-expand">
<label>
<div class="book-expand-head flex justify-between">
<span>{{ default "Expand" (.Get 0) }}</span>
<span>{{ default "↕" (.Get 1) }}</span>
</div>
<input type="checkbox" class="book-expand-expander" />
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>