Explorar o código

Add open param to details shortcode

Bee Hudson hai 1 ano
pai
achega
8de0d28f02
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      layouts/shortcodes/inDetails.html

+ 1 - 1
layouts/shortcodes/inDetails.html

@@ -1,5 +1,5 @@
 <div>
-    <details>
+    <details {{ with .Get "open" }}open{{ end }}>
         <summary>{{ .Get "title" }}</summary>
         {{ .Inner | markdownify -}}
     </details>