From 73f56fc1aafe7fe01d661fa915bd5ded652d6748 Mon Sep 17 00:00:00 2001 From: George Cushen Date: Thu, 2 Apr 2026 21:18:29 +0100 Subject: [PATCH] fix(biography): fix Resume section spacing and implement show_status option MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Use design.spacing.padding to remove top padding on biography section with banner image (previously caused a large 96px gap above the banner) - Add proper vertical spacing (mt-4) between bio text and Download Résumé button - Implement design.show_status option in both biography and biography-3 blocks (config was accepted but never checked — status emoji always rendered) --- .../blox/blox/resume-biography-3/block.html | 17 ++++++++++++----- modules/blox/blox/resume-biography/block.html | 19 +++++++++++++------ templates/resume/content/_index.md | 2 ++ 3 files changed, 27 insertions(+), 11 deletions(-) diff --git a/modules/blox/blox/resume-biography-3/block.html b/modules/blox/blox/resume-biography-3/block.html index a8fd6558..ff6aabc6 100644 --- a/modules/blox/blox/resume-biography-3/block.html +++ b/modules/blox/blox/resume-biography-3/block.html @@ -164,11 +164,18 @@ {{/* Avatar */}} {{ $status_icon := "" }} - {{ $status := $profile.status }} - {{ if and $status (reflect.IsMap $status) }} - {{ $status_icon_raw := index $status "icon" }} - {{ if eq (printf "%T" $status_icon_raw) "string" }} - {{ $status_icon = strings.TrimSpace $status_icon_raw }} + {{ $show_status := true }} + {{ $show_status_raw := index $design "show_status" }} + {{ if eq (printf "%T" $show_status_raw) "bool" }} + {{ $show_status = $show_status_raw }} + {{ end }} + {{ if $show_status }} + {{ $status := $profile.status }} + {{ if and $status (reflect.IsMap $status) }} + {{ $status_icon_raw := index $status "icon" }} + {{ if eq (printf "%T" $status_icon_raw) "string" }} + {{ $status_icon = strings.TrimSpace $status_icon_raw }} + {{ end }} {{ end }} {{ end }} diff --git a/modules/blox/blox/resume-biography/block.html b/modules/blox/blox/resume-biography/block.html index 4a8b88ab..89edf576 100644 --- a/modules/blox/blox/resume-biography/block.html +++ b/modules/blox/blox/resume-biography/block.html @@ -161,11 +161,18 @@ {{ $profile_bio := "" }} {{ with $profile.bio }}{{ $profile_bio = strings.TrimSpace (printf "%v" .) }}{{ end }} {{ $status_icon := "" }} -{{ with $profile.status }} - {{ if reflect.IsMap . }} - {{ $icon_raw := index . "icon" }} - {{ if eq (printf "%T" $icon_raw) "string" }} - {{ $status_icon = strings.TrimSpace $icon_raw }} +{{ $show_status := true }} +{{ $show_status_raw := index $design "show_status" }} +{{ if eq (printf "%T" $show_status_raw) "bool" }} + {{ $show_status = $show_status_raw }} +{{ end }} +{{ if $show_status }} + {{ with $profile.status }} + {{ if reflect.IsMap . }} + {{ $icon_raw := index . "icon" }} + {{ if eq (printf "%T" $icon_raw) "string" }} + {{ $status_icon = strings.TrimSpace $icon_raw }} + {{ end }} {{ end }} {{ end }} {{ end }} @@ -344,7 +351,7 @@ {{ else if in (slice "http" "https") $button_scheme }} {{ $button_target = "target=\"_blank\" rel=\"noopener\"" }} {{ end }} -