diff --git a/layouts/shortcodes/accordion-options.html b/layouts/shortcodes/accordion-options.html index 19cec95..d3e6850 100644 --- a/layouts/shortcodes/accordion-options.html +++ b/layouts/shortcodes/accordion-options.html @@ -5,20 +5,24 @@ Usage: ------- -{{< accordion-options threshold="600" notCollapsible="false" >}} +{{< accordion-options collapsible="false" >}} +Code block content goes here with **markdown** support. +{{< /accordion-options >}} + +{{< accordion-options threshold="600" >}} Code block content goes here with **markdown** support. {{< /accordion-options >}} Parameters: ------------ -- threshold (number): The pixel threshold at which the accordion collapses (only for non-collapsible accordions) --- notCollapsible (boolean): If true, the accordion cannot be collapsed +-- collapsible (boolean): Default is true, if false then the accordion cannot be collapsed */}} {{ $threshold := .Get "threshold" }} -{{ $notCollapsible := eq (lower (printf "%v" (.Get "notCollapsible"))) "true" }} +{{ $collapsible := ne (lower (printf "%v" (.Get "collapsible"))) "false" }} -