{{ with .Site.Params.recentposts.title }}

{{ . }}

{{ end }}

    {{ range first 5 (where .Data.Pages "Section" "post") }}
  1. {{ .Title }}
  2. {{ end }}