|
161 | 161 | {{ $profile_bio := "" }} |
162 | 162 | {{ with $profile.bio }}{{ $profile_bio = strings.TrimSpace (printf "%v" .) }}{{ end }} |
163 | 163 | {{ $status_icon := "" }} |
164 | | -{{ with $profile.status }} |
165 | | - {{ if reflect.IsMap . }} |
166 | | - {{ $icon_raw := index . "icon" }} |
167 | | - {{ if eq (printf "%T" $icon_raw) "string" }} |
168 | | - {{ $status_icon = strings.TrimSpace $icon_raw }} |
| 164 | +{{ $show_status := true }} |
| 165 | +{{ $show_status_raw := index $design "show_status" }} |
| 166 | +{{ if eq (printf "%T" $show_status_raw) "bool" }} |
| 167 | + {{ $show_status = $show_status_raw }} |
| 168 | +{{ end }} |
| 169 | +{{ if $show_status }} |
| 170 | + {{ with $profile.status }} |
| 171 | + {{ if reflect.IsMap . }} |
| 172 | + {{ $icon_raw := index . "icon" }} |
| 173 | + {{ if eq (printf "%T" $icon_raw) "string" }} |
| 174 | + {{ $status_icon = strings.TrimSpace $icon_raw }} |
| 175 | + {{ end }} |
169 | 176 | {{ end }} |
170 | 177 | {{ end }} |
171 | 178 | {{ end }} |
@@ -344,7 +351,7 @@ <h1 class="text-3xl font-bold mb-2 mt-6"> |
344 | 351 | {{ else if in (slice "http" "https") $button_scheme }} |
345 | 352 | {{ $button_target = "target=\"_blank\" rel=\"noopener\"" }} |
346 | 353 | {{ end }} |
347 | | - <a href="{{ $button_href | safeURL }}" {{ $button_target | safeHTMLAttr }} class="inline-flex items-center px-4 py-2 text-sm font-medium text-gray-900 bg-white border border-gray-200 rounded-lg transition-colors hover:bg-gray-100 hover:text-gray-900 focus:z-10 focus:ring-4 focus:outline-none focus:ring-gray-200 focus:text-gray-900 dark:bg-gray-800 dark:text-gray-400 dark:border-gray-600 dark:hover:text-white dark:hover:bg-gray-700 dark:focus:text-white dark:focus:ring-gray-700"><svg class="w-3.5 h-3.5 me-2.5" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 20 20"> |
| 354 | + <a href="{{ $button_href | safeURL }}" {{ $button_target | safeHTMLAttr }} class="mt-4 inline-flex items-center px-4 py-2 text-sm font-medium text-gray-900 bg-white border border-gray-200 rounded-lg transition-colors hover:bg-gray-100 hover:text-gray-900 focus:z-10 focus:ring-4 focus:outline-none focus:ring-gray-200 focus:text-gray-900 dark:bg-gray-800 dark:text-gray-400 dark:border-gray-600 dark:hover:text-white dark:hover:bg-gray-700 dark:focus:text-white dark:focus:ring-gray-700"><svg class="w-3.5 h-3.5 me-2.5" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 20 20"> |
348 | 355 | <path d="M14.707 7.793a1 1 0 0 0-1.414 0L11 10.086V1.5a1 1 0 0 0-2 0v8.586L6.707 7.793a1 1 0 1 0-1.414 1.414l4 4a1 1 0 0 0 1.416 0l4-4a1 1 0 0 0-.002-1.414Z"/> |
349 | 356 | <path d="M18 12h-2.55l-2.975 2.975a3.5 3.5 0 0 1-4.95 0L4.55 12H2a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-4a2 2 0 0 0-2-2Zm-3 5a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"/> |
350 | 357 | </svg> {{ $button_text }}</a> |
|
0 commit comments