{{/* This shortcode renders a single accordion-item for use with the FAQs page. Each FAQ is an accordion item. Parameters: - accordionID: The ID of the accordion container, as we have multiple accordions on the page. - title: The question. - collapsed: Boolean (default = true). Whether item should be collapsed or showing on page load. The Inner text content of the shortcode is used as the awnser to the FAQ. */}} {{ $accordionID := .Get "accordionID" }} {{ $collapsed := .Get "collapsed" | default true }} {{/* $faqID is generated randomly to ensure that each accordion-item has a unique ID (so that the expanding/collapsing JS works). Yes, this is a bit of a hack (but prevents having to pass an extra param in the markdown file). */}} {{ $faqID := math.Rand | string }}
{{ .Inner | markdownify }}