{{ define "user/fragments/editBio" }}
{{ $description := "" }} {{ if and .Profile .Profile.Description }} {{ $description = .Profile.Description }} {{ end }}
{{ $location := "" }} {{ if and .Profile .Profile.Location }} {{ $location = .Profile.Location }} {{ end }} {{ i "map-pin" "size-4" }}
{{ $includeBsky := false }} {{ if and .Profile .Profile.IncludeBluesky }} {{ $includeBsky = true }} {{ end }}
{{ $profile := .Profile }} {{ range $idx, $s := (sequence 5) }} {{ $link := "" }} {{ if and $profile $profile.Links }} {{ if lt $idx (len $profile.Links) }} {{ $link = index $profile.Links $idx }} {{ end }} {{ end }}
{{ i "link" "size-4" }}
{{ end }}
{{ range $idx, $s := (sequence 2) }} {{ $stat := "" }} {{ if and $profile $profile.Stats }} {{ if lt $idx (len $profile.Stats) }} {{ $s := index $profile.Stats $idx }} {{ $stat = $s.Kind }} {{ end }} {{ end }} {{ block "stat" (list $idx $stat) }} {{ end }} {{ end }}
{{ end }} {{ define "stat" }} {{ $id := index . 0 }} {{ $stat := index . 1 }} {{ end }}