diff --git a/layouts/shortcodes/home/latest.html b/layouts/shortcodes/home/latest.html index db28124..afb94d8 100644 --- a/layouts/shortcodes/home/latest.html +++ b/layouts/shortcodes/home/latest.html @@ -1,8 +1,8 @@ {{- $blogSection := site.GetPage "blog" -}} -{{- $latestBlogPosts := $blogSection.RegularPagesRecursive.ByDate.Reverse.Limit 2 -}} +{{- $latestBlogPosts := (where $blogSection.RegularPagesRecursive "Draft" "eq" false).ByDate.Reverse.Limit 2 -}} {{- $photosSection := site.GetPage "photos" -}} -{{- $latestPhotoPosts := $photosSection.RegularPagesRecursive.ByDate.Reverse.Limit 4 -}} +{{- $latestPhotoPosts := (where $photosSection.RegularPagesRecursive "Draft" "eq" false).ByDate.Reverse.Limit 4 -}}