From d6f8b59ecf8292432905ec171e578fe11f7c534e Mon Sep 17 00:00:00 2001 From: Guillermo Guerrero Ibarra Date: Fri, 25 Oct 2019 13:51:42 +0200 Subject: [PATCH] Show recent posts (hugo 0.59). (#233) --- layouts/partials/recent_posts.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/recent_posts.html b/layouts/partials/recent_posts.html index 660d61f58..1ea6cc638 100644 --- a/layouts/partials/recent_posts.html +++ b/layouts/partials/recent_posts.html @@ -16,7 +16,7 @@

{{ .Site.Params.recent_posts.title }}

- {{ $posts := .Paginate (where .Data.Pages "Type" "blog") }} + {{ $posts := .Paginate (where .Site.RegularPages "Type" "blog") }} {{ range first 4 $posts.Pages }}