From 314d8cd5a4bf51c0152f1cbefc2dfca8ca7d94e4 Mon Sep 17 00:00:00 2001 From: invinciblycool Date: Sun, 28 Mar 2021 13:54:29 +0530 Subject: [PATCH] fix: handle no posts --- layouts/index.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/layouts/index.html b/layouts/index.html index 914005d..8bf8ffe 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -31,6 +31,7 @@
+ {{ with .Site.Data.personalize.PostLimit }} {{ range first .Site.Data.personalize.PostLimit .Pages.ByPublishDate }}
{{ .Title }}
@@ -38,6 +39,7 @@

{{ end }} + {{ end }}

View all posts