Browse Source

Add new shortcode for spoiler blocks

Changed to using the details and summary tags. These are more POSH and
more accessibility friendly.
ApisNecros 1 năm trước cách đây
mục cha
commit
39c28b10a2
1 tập tin đã thay đổi với 6 bổ sung0 xóa
  1. 6 0
      layouts/shortcodes/inDetails.html

+ 6 - 0
layouts/shortcodes/inDetails.html

@@ -0,0 +1,6 @@
+<div>
+    <details>
+        <summary>{{ .Get "title" }}</summary>
+        {{ .Inner | markdownify -}}
+    </details>
+</div>