{{- $item := . -}} {{- $type := $item.Params.mediatype -}} {{- $date := $item.Lastmod -}} {{- $text := $item.Params.mdtext -}} {{- $id := $item.Params.id -}} {{- $youtubeid := $item.Params.youtubeid -}} {{- $image := .Resources.GetMatch "*featured*" -}} {{- $imagesrc := "" -}} {{- with $image -}} {{- $image = .Resize "600x" -}} {{- $imagesrc = .RelPermalink -}} {{- end -}} {{- $iwidth := 500 -}} {{- $iheight := 281 -}} {{- $imageaspect := $item.Params.imageaspect -}} {{- with eq $imageaspect "portrait" -}} {{- $iwidth = 500 -}} {{- $iheight = 750 -}} {{- end -}} {{- $link := $item.Params.link -}} {{- $channel := $item.Params.channel -}}
{{with $channel}}{{.}}: {{end}}{{with $text}}{{. | markdownify}}{{end}}
{{- with $youtubeid -}}