aboutsummaryrefslogtreecommitdiff
path: root/layouts/shortcodes/expand.html
diff options
context:
space:
mode:
authorAlex Shpak <alex-shpak@users.noreply.github.com>2019-05-22 14:37:31 +0200
committerAlex Shpak <alex-shpak@users.noreply.github.com>2019-05-22 14:37:55 +0200
commit0e6864f5aad8072fbdcecaad48c0151d231b1d25 (patch)
tree0c29f67a3222db94b1ca828dd8fe113606f7aa04 /layouts/shortcodes/expand.html
parent8f5aaee7aaf82a8939deb715483a1c45fe45efa8 (diff)
#39, Add expand and tabs shortcodes
Diffstat (limited to 'layouts/shortcodes/expand.html')
-rw-r--r--layouts/shortcodes/expand.html12
1 files changed, 12 insertions, 0 deletions
diff --git a/layouts/shortcodes/expand.html b/layouts/shortcodes/expand.html
new file mode 100644
index 0000000..049fdd1
--- /dev/null
+++ b/layouts/shortcodes/expand.html
@@ -0,0 +1,12 @@
+<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" style="display: none" />
+ <div class="book-expand-content markdown-inner">
+ {{- .Inner | markdownify -}}
+ </div>
+ </label>
+</div>