From 7427cfa3b47404c835423f4f085b564720b642c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Radek=20Kozie=C5=82?= Date: Wed, 14 Aug 2019 23:05:55 +0200 Subject: [PATCH] Fix list template for Hugo 0.57 --- layouts/_default/list.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 8e25c64..43eaa3f 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -2,7 +2,7 @@
{{ $isntDefault := not (or (eq (trim $.Site.Params.contentTypeName " ") "posts") (eq (trim $.Site.Params.contentTypeName " ") "")) }} {{ $contentTypeName := cond $isntDefault (string $.Site.Params.contentTypeName) "posts" }} - {{ $paginator := .Paginate (where .Data.Pages "Type" $contentTypeName) }} + {{ $paginator := .Paginate (where .Site.RegularPages "Type" $contentTypeName) }} {{ range $paginator.Pages }}