diff --git a/exampleSite/content/docs/shortcodes/index.md b/exampleSite/content/docs/shortcodes/index.md index 737e3e5d..569016d3 100644 --- a/exampleSite/content/docs/shortcodes/index.md +++ b/exampleSite/content/docs/shortcodes/index.md @@ -116,6 +116,7 @@ The alert sign (`+` or `-`) is optional to control whether the admonition is fol | `open` | **Optional.** Set to `true` to have the item open by default. | | `header` | **Optional.** Alias for `title`, kept for compatibility with other shortcodes. | | `icon` | **Optional.** Icon name to display before the title. | +| `align` | **Optional.** Align text within the item: `left`, `center`, `right` | **Example 1: `mode="open"` (multiple items can be open) + `separated=true`** diff --git a/layouts/shortcodes/accordionItem.html b/layouts/shortcodes/accordionItem.html index fa7819e3..31f810af 100644 --- a/layouts/shortcodes/accordionItem.html +++ b/layouts/shortcodes/accordionItem.html @@ -10,6 +10,7 @@ {{ $md := .Get "md" | default true }} {{ $open := .Get "open" | default false }} {{ $isOpen := or (eq $open true) (eq $open "true") }} +{{ $align := .Get "align" }}
-
+
{{ if $md }} {{- .Inner | markdownify -}} {{ else }}