{{- range .RegularPages.ByLastmod.Reverse -}} {{- $item := . -}} {{- $type := $item.Params.mediatype -}} {{- $date := $item.Lastmod -}} {{- $text := (index $item.Params "mdtext" | markdownify) | default ($item.Description | safeHTML) -}} {{- $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 -}}
{{ range .Params.categories }}{{ . }}{{ end }}

{{with $channel}}{{.}}: {{end}}{{with $text}}{{.}}{{end}}

{{- with .Params.expirestext -}}

{{- . -}}

{{- end -}} {{- with $youtubeid -}}
{{- end -}} {{- with $image -}} {{- end -}} {{ with eq $type "text" -}} {{- with $link -}}

Related link

{{- end -}} {{- end -}}
{{ range .Params.tags }}{{ . }}{{ end }}related ..
{{ partial "amp-share-bar" $item }}
{{- end -}}