diff --git a/layouts/shortcodes/home/latest.html b/layouts/shortcodes/home/latest.html index 41defbf..db28124 100644 --- a/layouts/shortcodes/home/latest.html +++ b/layouts/shortcodes/home/latest.html @@ -1,16 +1,16 @@ {{- $blogSection := site.GetPage "blog" -}} -{{- $latestBlogPosts := $blogSection.Pages.ByDate.Reverse.Limit 2 -}} +{{- $latestBlogPosts := $blogSection.RegularPagesRecursive.ByDate.Reverse.Limit 2 -}} {{- $photosSection := site.GetPage "photos" -}} -{{- $latestPhotoPosts := $photosSection.Pages.ByDate.Reverse.Limit 1 -}} +{{- $latestPhotoPosts := $photosSection.RegularPagesRecursive.ByDate.Reverse.Limit 4 -}}
- {{ range $latestBlogPosts }} + {{ range $latestBlogPosts -}}
{{ .Render "page_summary" }}
{{ end }} - {{ range $latestPhotoPosts }} + {{ range $latestPhotoPosts -}}
{{ .Render "page_summary" }}