{{- $author := .Section -}}
{{- $home := or print ("" | absURL) "/" -}}
{{- $kind := in (slice "home" "taxonomy" "term") .Page.Kind -}}
{{- $logo := .Site.Params.webmanifest.logo -}}
{{- $profile := print "public/data/media/" $author "/" $author "-profile" -}}
{{- if not $kind -}}
{{- $home = print ("" | absURL) "/" $author "/" -}}
{{- if fileExists (print $profile ".gif") -}} {{- $logo = (print $profile ".gif") -}} {{- end -}}
{{- if fileExists (print $profile ".webp") -}} {{- $logo = (print $profile ".webp") -}} {{- end -}}
{{- if fileExists (print $profile ".png") -}} {{- $logo = (print $profile ".png") -}} {{- end -}}
{{- end -}}
{{- with $logo = resources.Get $logo -}}
{{- $16 := $logo.Fit "16x16" -}}
{{- $32 := $logo.Fit "32x32" -}}
{{- $180 := $logo.Resize "180x180" -}}
{{- $192 := $logo.Resize "192x192" -}}
{{- $512 := $logo.Resize "512x512" -}}
{{- if (eq $.Page.Kind "home") -}}
{{- $writeToFile := ($32.Content | resources.FromString "/favicon.ico").Permalink -}}
{{- end -}}
{{ "" -}}
{{- with $manifest := $.Site.Params.webmanifest -}}
{{- end -}}
{{- end -}}