소스 검색

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>