Преглед изворни кода

Add open param to details shortcode

Bee Hudson пре 1 година
родитељ
комит
8de0d28f02
1 измењених фајлова са 1 додато и 1 уклоњено
  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>