{{ $home := .Site.GetPage "home" }} {{ $section := .Section }} {{ $posts := (where .Site.Pages "Section" "blog").ByPublishDate.Reverse }} {{ $latest_post := index $posts 0 }} {{ $blog_home := .Site.GetPage "section" "blog" }} {{ $news := (where .Site.Pages "Section" "news").ByPublishDate.Reverse }} {{ $latest_news := index $news 0 }} {{ $news_home := .Site.GetPage "section" "news" }}