diff --git a/layouts/index.html b/layouts/index.html index 8fa2e38..e02c589 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -10,11 +10,13 @@ {{ if isset .Site.Params "latestpostcount" }}
- {{ $nbPosts := len (where .Data.Pages "Section" "blog") }} + {{ $blogPosts := (where .Site.RegularPages "Section" "blog") }} + {{ $nbPosts := len $blogPosts }} {{ if gt $nbPosts 0 }}
Latest posts