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 }} -