From 1a8e14a8485a615eea260bf6ff24b8ce0ee821dd Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Wed, 10 Feb 2021 21:17:40 +0530 Subject: [PATCH] Use custom paginator's PageNumber for home-info fixes non-mainSections pages from being displayed in the list amend to 143eb18 --- layouts/_default/list.html | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/layouts/_default/list.html b/layouts/_default/list.html index bf87ef90..ab98c958 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -16,10 +16,6 @@ {{- end }} -{{- if and .IsHome .Site.Params.homeInfoParams (eq .Paginator.PageNumber 1) }} -{{- partial "home_info.html" . }} -{{- end }} - {{- $pages := union .RegularPages .Sections }} {{- if .IsHome }} @@ -27,6 +23,11 @@ {{- end}} {{ $paginator := .Paginate $pages }} + +{{- if and .IsHome .Site.Params.homeInfoParams (eq $paginator.PageNumber 1) }} +{{- partial "home_info.html" . }} +{{- end }} + {{ $term := .Data.Term}} {{- range $index, $page := $paginator.Pages }}