{{- $author := slice (.Get "author") -}} {{- $rank := .Get "rank" -}} {{- $first := first 1 (intersect (where .Site.Pages.ByDate.Reverse "Section" "blog") (intersect (where .Site.Pages.ByDate.Reverse "Params.authors" "intersect" $author) (where .Site.Pages.ByDate.Reverse "Params.headline" "eq" $rank))) -}} {{- range $first -}} {{- if eq $rank "top" -}} {{- $img := .Resources.GetMatch "*featured*" -}} {{- $permalink := .RelPermalink -}}

{{.Title}}

{{- with $img -}} {{- $small := .Resize "600x" -}}
{{ $img.Title }}
{{- end -}} {{- with .Params.featuredcaption -}}

{{.}}

{{- end -}}

{{.Description}}

Read the full article

{{- else -}}

{{.Title}}

{{.Description}}

 |  {{- range .Params.categories -}} {{.}} {{- end -}}

{{ $img := .Resources.GetMatch "*featured*" }} {{ $permalink := .RelPermalink }} {{ with $img }} {{ $small := .Resize "600x" }}
{{ $img.Title }}
{{end}} {{with .Params.featuredcaption}}

{{.}}

{{end}}
{{- end -}} {{- end -}}