Fix v0.57 .Pages breaking change
This commit is contained in:
@@ -15,7 +15,11 @@
|
|||||||
{{ . }}
|
{{ . }}
|
||||||
</section>
|
</section>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{ $paginator := .Paginate (where .Pages "Params.displayinlist" "!=" false) -}}
|
{{ $pages := .Pages }}
|
||||||
|
{{ if .IsHome }}
|
||||||
|
{{ $pages = .Site.RegularPages }}
|
||||||
|
{{ end }}
|
||||||
|
{{ $paginator := .Paginate (where $pages "Params.displayinlist" "!=" false) -}}
|
||||||
{{- range $paginator.Pages -}}
|
{{- range $paginator.Pages -}}
|
||||||
{{ .Render "li" }}
|
{{ .Render "li" }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|||||||
Reference in New Issue
Block a user