From d505746f17a7eb9aaafdb714b1b415f4f8274b69 Mon Sep 17 00:00:00 2001 From: Mark Dumay <61946753+markdumay@users.noreply.github.com> Date: Wed, 10 Dec 2025 11:52:52 +0100 Subject: [PATCH 1/3] fix: refine client arguments --- data/structures/_arguments.yml | 2 +- data/structures/_types.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/data/structures/_arguments.yml b/data/structures/_arguments.yml index d8fb991..e01931e 100644 --- a/data/structures/_arguments.yml +++ b/data/structures/_arguments.yml @@ -337,7 +337,7 @@ arguments: type: string optional: true comment: >- - The full name of the contact to retrieve. + The full name of the contact to retrieve or display. container: type: string optional: true diff --git a/data/structures/_types.yml b/data/structures/_types.yml index 48ff1af..d31b3c4 100644 --- a/data/structures/_types.yml +++ b/data/structures/_types.yml @@ -101,7 +101,7 @@ types: client: link: client: - name: + contact: role: image: mode: From cea59fa8ddccc8659b87cb74f987c413eafb6348 Mon Sep 17 00:00:00 2001 From: Mark Dumay <61946753+markdumay@users.noreply.github.com> Date: Thu, 11 Dec 2025 09:46:09 +0100 Subject: [PATCH 2/3] docs: fix typo in image and logo argument --- data/structures/_arguments.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data/structures/_arguments.yml b/data/structures/_arguments.yml index e01931e..c95a5d2 100644 --- a/data/structures/_arguments.yml +++ b/data/structures/_arguments.yml @@ -625,7 +625,7 @@ arguments: image: type: string optional: true - comment: Image to include in the the content block or section heading. + comment: Image to include in the content block or section heading. image-height: type: int optional: true @@ -810,7 +810,7 @@ arguments: logo: type: string optional: true - comment: Logo image to include in the the content block or section heading. + comment: Logo image to include in the content block or section heading. long: type: - float From da994f553e6d96b58e80ce2f78e635af7254331b Mon Sep 17 00:00:00 2001 From: Mark Dumay <61946753+markdumay@users.noreply.github.com> Date: Thu, 22 Jan 2026 16:11:26 +0100 Subject: [PATCH 3/3] fix: refine structured type init Related to https://github.com/gethinode/mod-utils/commit/5ce5b82e5d4e17c9a5d0aa9aa9c0cf5d74966324 --- layouts/_partials/utilities/InitArgs.html | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/layouts/_partials/utilities/InitArgs.html b/layouts/_partials/utilities/InitArgs.html index d0195b2..56e0897 100644 --- a/layouts/_partials/utilities/InitArgs.html +++ b/layouts/_partials/utilities/InitArgs.html @@ -202,9 +202,12 @@ {{/* add missing keys with default values (nested one level deep) or empty slice */}} {{ range $key, $val := $types.types }} - {{ if (not (isset $params $key)) }} + {{ $check := index $params $key }} + {{ if not $check }} {{ $udt := index $types.udt $key }} - {{ if or (isset $val "config") (isset $val "default") }} + {{ $check1 := index $val "config" }} + {{ $check2 := index $val "default" }} + {{ if or $check1 $check2 }} {{ $params = merge $params (dict $key (partial "inline/default.html" (dict "config" $val.config "default" $val.default)) ) }}