Skip to content
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
6 changes: 3 additions & 3 deletions data/structures/_arguments.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion data/structures/_types.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ types:
client:
link:
client:
name:
contact:
role:
image:
mode:
Expand Down
7 changes: 5 additions & 2 deletions layouts/_partials/utilities/InitArgs.html
Original file line number Diff line number Diff line change
Expand Up @@ -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))
) }}
Expand Down
Loading