{{ $postPermalink := .Permalink}}

{{ .Title }}

From {{ if .Params.contributors }}{{range .Params.contributors}} {{ . }} {{end}} at {{ end }}{{ .Params.feed_name }}
{{ if .Params.featured_image }} {{ with $img := .Resources.GetMatch .Params.featured_image }} {{ $height := add $img.Height 0.0}} {{ $ratio := div $height $img.Width}} {{ $thumb := $img.Fit "540x540 q80 webp"}}
{{end}} {{ else if (.Resources.ByType "image") }} {{/* Somehow the image resources are iterated in reverse, so we need to get the last one*/}} {{ range last 1 (.Resources.ByType "image") }} {{ $img := . }} {{ $height := add .Height 0.0}} {{ $ratio := div $height .Width}} {{ $thumb := .Fit "540x540 q80 webp"}}
{{ end }} {{ else }}
{{ end }}
{{ .Summary }}