#205, Add details shortcode

This commit is contained in:
Alex Shpak
2020-04-21 22:30:00 +02:00
parent b88d5f6b12
commit 66968582ef
6 changed files with 37 additions and 2 deletions
+6
View File
@@ -0,0 +1,6 @@
<details {{ if or (.Get "open") (in .Params "open") }}open{{ end }}>
<summary>{{ cond .IsNamedParams (.Get "title") (.Get 0) }}</summary>
<div class="markdown-inner">
{{ .Inner | markdownify }}
</div>
</details>
+1
View File
@@ -1,3 +1,4 @@
{{ warnf "Expand shortcode is deprecated. Use 'details' instead." }}
<div class="book-expand">
<label>
<div class="book-expand-head flex justify-between">