{{ $pages := first 5 (sort .Site.RegularPages "Date" "desc") }}
{{ range $index, $page := first 2 $pages }}
{{ range ($page.GetTerms "categories") }} {{ .Params.title }} {{ end }}

## {{ $page.Params.title }}

{{ $page.Date | time.Format ":date_long" }}
{{ end }}
{{ range $index, $page := $pages }} {{ if eq $index 2 }}
{{ range ($page.GetTerms "categories") }} {{ .LinkTitle }} {{ end }}

## {{ $page.Params.title }}

{{ $page.Date | time.Format ":date_long" }}
{{ end }} {{ if eq $index 3 }}
{{ end }} {{ if or (eq $index 3) (eq $index 4) }}

## {{ $page.Params.title }}

{{ $page.Date | time.Format ":date_long" }}
{{ end }} {{ if eq $index 4 }}
{{ end }} {{ end }}

### Video News

{{ range first 4 (sort (where .Site.RegularPages "Params.type" "video") "Date" "desc") }}

## {{ .Params.title }}

{{ end }}