From 820cab57306d8612619b34ea401d75fea52cfecf Mon Sep 17 00:00:00 2001 From: Marcin Mierzejewski Date: Fri, 29 May 2020 13:00:40 +0200 Subject: [PATCH] home: fix problem with displaying three latest posts --- layouts/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/index.html b/layouts/index.html index 161d206..a8e3bed 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -11,7 +11,7 @@ Console is a minimal, responsive and light theme for Hugo inspired by Linux cons
{{ with .Site.GetPage "/posts" }} - {{ range first 3 ((where .Pages ".Params.private" "!=" true) sort .Data.Pages "Date" "desc")}} + {{ range first 3 (sort .Data.Pages "Date" "desc" (where .Pages ".Params.private" "!=" true))}}
{{ .PublishDate.Format "Jan. 2, 2006" }}

{{ .Title }}