From 7b1bd41a54a686877a0289c09609be3af1944ff4 Mon Sep 17 00:00:00 2001 From: Christoph Cullmann Date: Sun, 24 Jan 2021 22:13:40 +0100 Subject: [PATCH] list only posts --- themes/beautifulhugo/layouts/index.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/themes/beautifulhugo/layouts/index.html b/themes/beautifulhugo/layouts/index.html index f3de0fa..eab1ad2 100644 --- a/themes/beautifulhugo/layouts/index.html +++ b/themes/beautifulhugo/layouts/index.html @@ -9,7 +9,8 @@ {{ end }}
- {{ range .Paginator.Pages }} + {{ $pag := .Paginate (where .Site.RegularPages "Type" "post") }} + {{ range $pag.Pages }}