{{ define "main" }}
{{ with .Site.Author.image }} {{ $src := . }} {{ $resource := "" }} {{ if $.Page.Resources.GetMatch $src }} {{ $resource = $.Page.Resources.GetMatch $src }} {{ else if resources.GetMatch $src }} {{ $resource = resources.Get $src }} {{ end }} {{ with $resource }} {{ $src = (.Fill "288x288").RelPermalink }} {{ end }} {{ $.Site.Author.name | default {{ end }}

{{ .Params.title | default .Site.Author.name | default .Site.Title | emojify }}

{{ with .Site.Author.headline }}

{{ . | markdownify | emojify }}

{{ end }} {{ with .Content }}
{{ . | emojify }}
{{ end }}
{{ with .Site.Author.links }}
{{ range $links := . }} {{ range $type, $data := $links }} {{ $href := $data }} {{ $icon := $type }} {{ $text := i18n (printf "link.%s" $type) }} {{ $target := "_blank" }} {{ $title := "" }} {{ if reflect.IsMap $data }} {{ with $data.href }}{{ $href = . }}{{ end }} {{ with $data.icon }}{{ $icon = . }}{{ end }} {{ with $data.text }}{{ $text = . }}{{ end }} {{ with $data.target }}{{ $target = . }}{{ end }} {{ with $data.title }}{{ $title = . }}{{ end }} {{ end }} {{- with $icon -}} {{ partial "icon.html" . }} {{- end -}} {{ $text | emojify }} {{ end }} {{ end }}
{{ end }}
{{ end }}