浏览代码

Add new shortcode for spoiler blocks

Changed to using the details and summary tags. These are more POSH and
more accessibility friendly.
ApisNecros 1 年之前
父节点
当前提交
39c28b10a2
共有 1 个文件被更改,包括 6 次插入0 次删除
  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>