{{- $file := "/profile/picture.png" -}} {{- $path := print "public/" (partial "author-media-path.html" .) $file -}} {{- $image := resources.Get $path -}} {{- $404image := resources.Get "data/media/404.png" -}} {{- $dimensions := "160x160" -}} {{- $author := partial "author-user.html" . }} {{- with .Params.feed -}} {{- else -}} {{- with $image -}} {{- $image = .Content | resources.FromString (print (partial "function-paths-media.html") "/" $author "/" (path.Base .)) -}} {{- end -}} {{ end }} {{ .name }} {{- /* This comment removes trailing newlines and white spaces. */ -}}