{{ define "main" }}
{{ with .Site.Author.image }} {{ $.Site.Author.alternative }} {{ end }}

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

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