From e99d58e71742548fbb41f0cad18792e5e5ee467f Mon Sep 17 00:00:00 2001 From: Filip Vukelic <136091729+filvuk@users.noreply.github.com> Date: Wed, 9 Oct 2024 16:30:56 +0200 Subject: [PATCH 1/2] Fix argument ordering --- modules/blox-bootstrap/layouts/partials/blocks/portfolio.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/blox-bootstrap/layouts/partials/blocks/portfolio.html b/modules/blox-bootstrap/layouts/partials/blocks/portfolio.html index 5d9427a4e..dd01ae2cb 100644 --- a/modules/blox-bootstrap/layouts/partials/blocks/portfolio.html +++ b/modules/blox-bootstrap/layouts/partials/blocks/portfolio.html @@ -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)) }} From 7e3cf6c2ca67d8b06af045ad84b3818f2ad7f9af Mon Sep 17 00:00:00 2001 From: Filip Vukelic <136091729+filvuk@users.noreply.github.com> Date: Sat, 12 Oct 2024 23:47:33 +0200 Subject: [PATCH 2/2] Change argument ordering in v1 block --- .../blox-bootstrap/layouts/partials/blocks/v1/portfolio.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/blox-bootstrap/layouts/partials/blocks/v1/portfolio.html b/modules/blox-bootstrap/layouts/partials/blocks/v1/portfolio.html index a76aa5d0d..391b8664f 100644 --- a/modules/blox-bootstrap/layouts/partials/blocks/v1/portfolio.html +++ b/modules/blox-bootstrap/layouts/partials/blocks/v1/portfolio.html @@ -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)) }}