From 123ebe8bb4fd3708fc51dab42613e6a3a7d37d4c Mon Sep 17 00:00:00 2001 From: Recle Etino Vibal Date: Thu, 3 Oct 2019 06:39:29 +0800 Subject: Remove .Data.Pages in favor of .Site.RegularPages Using only .Data.Pages will only show a link to the Post page in the home page. Using .Site.RegularPages returns the homepage to a normal showcase of existing posts. This change happened starting at Hugo >0.57. --- layouts/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/index.html b/layouts/index.html index 132386f..ef21430 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -6,7 +6,7 @@
- {{ range ( .Paginate (where .Data.Pages "Type" "post")).Pages }} + {{ range ( .Paginate (where .Site.RegularPages "Type" "post")).Pages }} {{ .Render "summary"}} {{ end }} -- cgit v1.2.3