{{- $source := $.Destination | safeURL -}} {{- $localPath := print "public/" $source -}} {{- $remoteImage := resources.GetRemote $source -}} {{- $width := "" -}} {{- $height := "" -}} {{- with $remoteImage -}} {{- with .Err -}} {{- if fileExists $localPath -}} {{- $localImage := imageConfig $localPath -}} {{- with $localImage -}} {{- $width = .Width -}} {{- $height = .Height -}} {{- end -}} {{- else -}} {{- $source = print "/images/thumbnails/placeholder.png" -}} {{- $localPath = print "static/" $source -}} {{- $localImage := imageConfig $localPath -}} {{- with $localImage -}} {{- $width = .Width -}} {{- $height = .Height -}} {{- end -}} {{- end -}} {{- else -}} {{- $width = .Width -}} {{- $height = .Height -}} {{ end }} {{ end }} {{- /* This comment removes trailing newlines. */ -}}
{{ $.Text | htmlUnescape }} {{ if $.Title }}
{{ $.Title | markdownify }}
{{ end -}}
{{- /* This comment removes trailing newlines. */ -}}