From {{ if .Params.author }}{{.Params.author}} at {{ end }}{{ .Params.feed_name }}
{{ $postPermalink := .Permalink}}

{{ .Title }}

{{ with (index (.Resources.ByType "image") 0) }} {{ $height := add .Height 0.0}} {{ $ratio := div $height .Width}} {{ $thumb := .Fit "540x540 q80 webp"}}
{{ else }}
{{ end }}
{{ .Summary }}
this should show the first image in the content {{$first_image := ""}} {{$matches := findRESubmatch `]+)(?:'|")` .Content 1 }} {{range $matches}}{{$first_image = index . 1}}{{end}} {{with .Resources.Get $first_image}} {{if .ResourceType}} {{.ResourceType}} {{.MediaType}} {{/* uncomment below to crash the build*/}} {{.Width}} {{end}} {{end}}