mirror of
https://github.com/Wonderfall/hugo-WonderMod.git
synced 2024-10-01 01:06:14 -04: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>
|
</header>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
{{- if and .IsHome .Site.Params.homeInfoParams (eq .Paginator.PageNumber 1) }}
|
|
||||||
{{- partial "home_info.html" . }}
|
|
||||||
{{- end }}
|
|
||||||
|
|
||||||
{{- $pages := union .RegularPages .Sections }}
|
{{- $pages := union .RegularPages .Sections }}
|
||||||
|
|
||||||
{{- if .IsHome }}
|
{{- if .IsHome }}
|
||||||
@ -27,6 +23,11 @@
|
|||||||
{{- end}}
|
{{- end}}
|
||||||
|
|
||||||
{{ $paginator := .Paginate $pages }}
|
{{ $paginator := .Paginate $pages }}
|
||||||
|
|
||||||
|
{{- if and .IsHome .Site.Params.homeInfoParams (eq $paginator.PageNumber 1) }}
|
||||||
|
{{- partial "home_info.html" . }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
{{ $term := .Data.Term}}
|
{{ $term := .Data.Term}}
|
||||||
{{- range $index, $page := $paginator.Pages }}
|
{{- range $index, $page := $paginator.Pages }}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user