mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-11 03:12:56 +00:00
fix(bootstrap): default_button_index possibly not taking effect (#3156)
Fixes argument ordering
This commit is contained in:
1 parent
2f0f3249cb
commit
fdf45baf57
2 files changed
+2
-2
No files matched your search
@@ -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)) }}
|
||||
|
||||
@@ -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)) }}
|
||||
|
||||
Reference in new issue
Block a user