See https://discourse.gohugo.io/t/custom-pagination-is-not-working/39049/8?u=elnudevmain
parent
ab51476ba4
commit
7ef69b2c94
@ -1 +1,10 @@
|
||||
{{ if and .IsHome (eq .Paginator.PageNumber 1) }}{{ .Site.Params.HomepageHeader | safeHTML }}{{ else }}<a href="/">« Home</a>{{ end }}
|
||||
{{- $pagination := "" }}
|
||||
{{- if .IsHome }}
|
||||
{{ $pagination = .Paginate (where .Site.RegularPages "Params.hidden" "!=" true) }}
|
||||
{{- end }}
|
||||
|
||||
{{ if and .IsHome (eq $pagination.PageNumber 1) }}
|
||||
{{ .Site.Params.HomepageHeader | safeHTML }}
|
||||
{{ else }}
|
||||
<a href="/">« Home</a>
|
||||
{{ end }}
|
||||
|
Loading…
Reference in new issue