diff --git a/layouts/shortcodes/accordion.html b/layouts/shortcodes/accordion.html
index d4ef39e0..14ff2d79 100644
--- a/layouts/shortcodes/accordion.html
+++ b/layouts/shortcodes/accordion.html
@@ -11,7 +11,13 @@
>
{{- .Inner -}}
-{{ if not $isSeparated }}
+{{ if $isSeparated }}
+
+{{ else }}