diff --git a/layouts/index.html b/layouts/index.html index 2817e506..9c31f788 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -83,7 +83,7 @@ -{{ $posts_len := len (where .Data.Pages "Type" "post") }} +{{ $posts_len := len (where (where .Data.Pages "Type" "post") ".Params.notonhomepage" nil) }} {{ if gt $posts_len 0 }} @@ -101,7 +101,7 @@ {{ end }} - {{ range first .Site.Params.posts.count (where .Data.Pages "Type" "post") }} + {{ range first .Site.Params.posts.count (where (where .Data.Pages "Type" "post") ".Params.notonhomepage" nil) }} {{ if .Params.image }}