|
@@ -1,13 +1,6 @@
|
|
{{- $id := printf "spoiler-%d" .Ordinal -}}
|
|
{{- $id := printf "spoiler-%d" .Ordinal -}}
|
|
-<div class="spoiler {{ .Get "class" }}" {{ with .Get "style" }}style="{{ . | safeCSS }}"{{ end }}>
|
|
|
|
- <p>
|
|
|
|
- <a class="btn btn-primary" data-toggle="collapse" href="#{{$id}}" role="button" aria-expanded="false" aria-controls="{{$id}}">
|
|
|
|
- {{ .Get "text" | emojify }}
|
|
|
|
- </a>
|
|
|
|
- </p>
|
|
|
|
- <div class="collapse card {{ if (eq (.Get "open") "true") }}show{{ end }}" id="{{$id}}">
|
|
|
|
- <div class="card-body">
|
|
|
|
- {{ .Inner | markdownify | emojify }}
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
-</div>
|
|
|
|
|
|
+
|
|
|
|
+<details class="spoiler {{ .Get "class" }}" {{ with .Get "style" }}style="{{ . | safeCSS }}"{{ end }} id="{{$id}}">
|
|
|
|
+ <summary>{{ .Get "text" | markdownify | emojify }}</summary>
|
|
|
|
+ <p>{{ .Inner | markdownify | emojify }}</p>
|
|
|
|
+</details>
|