diff options
author | Bert Heymans <bert.heymans@gmail.com> | 2017-03-06 17:33:10 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-06 17:33:10 +0300 |
commit | 329d0e9bc3111aa4821d7d17bedc5f0bb95cd380 (patch) | |
tree | 83440f752a36ef92460401172511685d49bc1b10 | |
parent | ee3b7816ad9bcca1ecd4926e0e4857e8d1d9d3b5 (diff) |
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
-rw-r--r-- | layouts/partials/article_list.html | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ <section id="main"> - {{ $paginator := .Paginate (where .Site.Pages "Type" "post") }} + {{ $paginator := .Paginate (where .Site.RegularPages "Type" "post") }} {{ range $paginator.Pages }} <article class="article article-type-post" itemscope="" itemprop="blogPost"> <div class="article-inner"> |