Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix argument ordering #3156

Merged
merged 2 commits into from
Oct 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading