{{ $postPermalink := .Permalink}}

{{ range $i, $e := .Params.tags -}} {{- if $i -}} {{ end -}} #{{ $e | humanize | lower }} {{- end -}}

{{ with (index (.Resources.ByType "video") 0) }} {{/* TODO this current logic does not suport video & image mixed */}}
{{ else}} {{ with (index (.Resources.ByType "image") 0) }} {{ $height := add .Height 0.0}} {{ $ratio := div $height .Width}} {{ $thumb := .Fit "540x540 q80 webp"}}
{{ else }}
{{ end }} {{ end }}
{{ .Summary }}