{{ $disableImageOptimization := .Site.Params.disableImageOptimization | default false }}
{{ with .data.image }} {{ $authorImage := "" }} {{ if or (hasPrefix . "http://") (hasPrefix . "https://") }} {{ $authorImage = resources.GetRemote . }} {{ else }} {{ $authorImage = resources.Get . }} {{ end }} {{ if $authorImage }} {{ $final := $authorImage }} {{ $squareImage := $authorImage }} {{ if not (or $disableImageOptimization (eq $authorImage.MediaType.SubType "svg")) }} {{ $final = $authorImage.Fill "192x192" }} {{ $shortSide := int (math.Min $authorImage.Width $authorImage.Height) }} {{ $squareImage = $authorImage.Crop (printf "%dx%d" $shortSide $shortSide ) }} {{ end }} {{ end }} {{ end }}
{{ $link := .link }} {{ with .data.name | markdownify | emojify }}
{{ i18n "author.byline_title" | markdownify }}
{{ . }} {{ end }} {{ with .data.bio | markdownify }}
{{ . }}
{{ end }}
{{ range .data.social }} {{ range $name, $link := . }} {{ partial "icon.html" $name }} {{ end }} {{ end }}