{{- $blogSection := site.GetPage "blog" -}}
{{- $latestBlogPosts := (where $blogSection.RegularPagesRecursive "Draft" "eq" false).ByDate.Reverse.Limit 2 -}}

{{- $photosSection := site.GetPage "photos" -}}
{{- $latestPhotoPosts := (where $photosSection.RegularPagesRecursive "Draft" "eq" false).ByDate.Reverse.Limit 4 -}}

<div class="home-latest">
  {{ range $latestBlogPosts -}}
    <div class="home-latest__blog">
      {{ .Render "page_summary" }}
    </div>
  {{ end }}
  {{ range $latestPhotoPosts -}}
    <div class="home-latest__photo">
      {{ .Render "page_summary" }}
    </div>
  {{ end }}
</div>

