From 329d0e9bc3111aa4821d7d17bedc5f0bb95cd380 Mon Sep 17 00:00:00 2001 From: Bert Heymans Date: Mon, 6 Mar 2017 15:33:10 +0100 Subject: fix to use new 0.18.0 RegularPages variable The theme generated an extra item in the list for every directory in the content because everything is a Page since 0.18.0. Suggested update is to use .Site.RegularPages instead of .Site.Pages to loop over so the theme keeps working in the same way as it did before 0.18.0. See details https://github.com/spf13/hugo/blob/afb3334ed8972a845c4f46cf225d6783bfc12e3f/docs/content/meta/release-notes.md#0180-december-19th-2016 --- layouts/partials/article_list.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/article_list.html b/layouts/partials/article_list.html index a66edb1..af28570 100644 --- a/layouts/partials/article_list.html +++ b/layouts/partials/article_list.html @@ -1,5 +1,5 @@
- {{ $paginator := .Paginate (where .Site.Pages "Type" "post") }} + {{ $paginator := .Paginate (where .Site.RegularPages "Type" "post") }} {{ range $paginator.Pages }}
-- cgit v1.2.3