diff --git a/layouts/partials/sections/featured-posts.html b/layouts/partials/sections/featured-posts.html index 1bfe10b..25dccf2 100644 --- a/layouts/partials/sections/featured-posts.html +++ b/layouts/partials/sections/featured-posts.html @@ -20,8 +20,8 @@ {{ end }}
- {{ range (where (where site.RegularPages.ByDate.Reverse "Type" "posts" ) "Layout" "!=" "search") }} - {{if in $posts (.Title)}} + {{ range $post := .posts}} + {{ with site.GetPage $post }} {{ partial "cards/recent-post.html" . }} {{ end }} {{ end }}