From b199122d652eae85a445001a35308055000c6a7b Mon Sep 17 00:00:00 2001 From: George Cushen Date: Wed, 7 Jan 2026 17:33:36 +0000 Subject: [PATCH] style: improve spacing between groups --- modules/blox/blox/team-showcase/block.html | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/modules/blox/blox/team-showcase/block.html b/modules/blox/blox/team-showcase/block.html index 2dbee566..07e04b3f 100644 --- a/modules/blox/blox/team-showcase/block.html +++ b/modules/blox/blox/team-showcase/block.html @@ -70,7 +70,7 @@ {{ $groups := $block.content.user_groups }} {{ if $groups }} - {{ range $groupItem := $groups }} + {{ range $i, $groupItem := $groups }} {{ $groupName := "" }} {{ $groupSortField := $sort_field }} {{ $groupSortAsc := $sort_asc }} @@ -124,15 +124,17 @@ {{ end }} {{ $groupProfiles = sort $groupProfiles "sort_val" $groupOrder }} - {{ if and (or (gt (len $groupProfiles) 0) $show_empty_groups) (gt (len $groups) 1) }} -
+ {{ $hasGroupContent := or (gt (len $groupProfiles) 0) $show_empty_groups }} + + {{ if and $hasGroupContent (gt (len $groups) 1) }} +

{{ $groupName | markdownify }}

{{ end }} - {{ if or (gt (len $groupProfiles) 0) $show_empty_groups }} + {{ if $hasGroupContent }}
{{ if eq (len $groupProfiles) 0 }} {{ if $show_empty_groups }}