mirror of
https://github.com/Wonderfall/hugo-WonderMod.git
synced 2024-12-22 17:15:07 +01:00
Use custom paginator's PageNumber for home-info
fixes non-mainSections pages from being displayed in the list
amend to 143eb18
This commit is contained in:
parent
143eb18b75
commit
1a8e14a848
@ -16,10 +16,6 @@
|
||||
</header>
|
||||
{{- 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 }}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user