From 3830aed960ae9533520bb179bc79633fe4bfa86d Mon Sep 17 00:00:00 2001 From: George Cushen Date: Sat, 30 May 2020 11:03:37 +0100 Subject: [PATCH] fix: prevent all spoilers opening when have same button text Fix #1723 --- layouts/shortcodes/spoiler.html | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/layouts/shortcodes/spoiler.html b/layouts/shortcodes/spoiler.html index 344b74b3..6d617ed9 100644 --- a/layouts/shortcodes/spoiler.html +++ b/layouts/shortcodes/spoiler.html @@ -1,14 +1,13 @@ -{{- $id := printf "spoiler-%s" (.Get "text" | lower | urlize) -}} +{{- $id := printf "spoiler-%d" .Ordinal -}}
-

- -

-
-
+

+ +

+
- {{ .Inner | markdownify | emojify }} + {{ .Inner | markdownify | emojify }}
\ No newline at end of file