Kaynağa Gözat

Add open param to details shortcode

Bee Hudson 1 yıl önce
ebeveyn
işleme
8de0d28f02
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  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>