Skip to content

Commit

Permalink
fix(bootstrap): default_button_index possibly not taking effect (#3156)
Browse files Browse the repository at this point in the history
Fixes argument ordering
  • Loading branch information
filvuk authored Oct 13, 2024
1 parent 2f0f324 commit fdf45ba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

{{ if $block.content.buttons }}

{{ $filter_default := default (int $block.content.default_button_index) 0 }}
{{ $filter_default := default 0 (int $block.content.default_button_index) }}

{{/* Parse default filter tag from front matter in the form of either tag name or CSS class name. */}}
{{ $default_filter_item := (index $block.content.buttons ($filter_default)) }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

{{ if $block.Params.content.filter_button }}

{{ $filter_default := default (int $block.Params.content.filter_default) 0 }}
{{ $filter_default := default 0 (int $block.Params.content.filter_default) }}

{{/* Parse default filter tag from front matter in the form of either tag name or CSS class name. */}}
{{ $default_filter_item := (index $block.Params.content.filter_button ($filter_default)) }}
Expand Down

0 comments on commit fdf45ba

Please # to comment.