{{- $host := (urls.Parse ("" | absURL)).Host -}} {{- $date := .Date | time.Format "Mon Jan 2 2006" -}} {{- $metadata := print "public/" .Data.user "/author.json" -}} {{- if not $host -}} {{- $host = "localhost" -}} {{- end -}} {{- $alternate := .Data.name -}} {{- $width := "" -}} {{- $height := "" -}} {{- $source := "" -}} {{- $sourceset := "" -}} {{- $source = print "/" (partial "function-paths.html").media "/" .Data.user "/" .Data.user "-profile" (path.Ext .Data.picture.profile) -}} {{- $sourceset = print "/" (partial "function-paths.html").media "/" .Data.user "/" .Data.user "-profile.webp" -}} {{- with $metadata := resources.Get $metadata -}} {{- with $content := $metadata.Content -}} {{- $metadata = $content | transform.Unmarshal -}} {{- $width = $metadata.picture.profileWidth -}} {{- $height = $metadata.picture.profileHeight -}} {{- end -}} {{- end -}} {{- if or (not (path.Ext .Data.picture.profile)) (not (fileExists (print "public/" (partial "function-paths.html").media "/" .Data.user))) -}} {{- $source = "/data/media/404.png" -}} {{- $sourceset = "" -}} {{- end -}} {{- if not .Date -}} {{- $date = "Inactive" -}} {{- end -}}
{{- with $sourceset -}} {{- end -}} {{ $alternate }}

{{ .Data.description | markdownify | plainify | htmlUnescape | truncate 60 "..." }}

{{ safeHTML (readFile (print (partial "function-paths.html").static "/icons/tabler/rss.svg")) }} Feed