mirror of
https://github.com/gohugoio/hugo.git
synced 2024-12-25 01:42:09 +00:00
parent
acfa153863
commit
08e4f9ff9c
2 changed files with 2 additions and 0 deletions
1
tpl/tplimpl/embedded/templates.autogen.go
generated
1
tpl/tplimpl/embedded/templates.autogen.go
generated
|
@ -263,6 +263,7 @@ if (!doNotTrack) {
|
||||||
{{- range $pag.Pagers -}}
|
{{- range $pag.Pagers -}}
|
||||||
{{- $right := sub .TotalPages .PageNumber -}}
|
{{- $right := sub .TotalPages .PageNumber -}}
|
||||||
{{- $showNumber := or (le .PageNumber 3) (eq $right 0) -}}
|
{{- $showNumber := or (le .PageNumber 3) (eq $right 0) -}}
|
||||||
|
{{- $showNumber := or $showNumber (le .TotalPages 5) -}}{{/* Issue #7523 */}}
|
||||||
{{- $showNumber := or $showNumber (and (gt .PageNumber (sub $pag.PageNumber 2)) (lt .PageNumber (add $pag.PageNumber 2))) -}}
|
{{- $showNumber := or $showNumber (and (gt .PageNumber (sub $pag.PageNumber 2)) (lt .PageNumber (add $pag.PageNumber 2))) -}}
|
||||||
{{- if $showNumber -}}
|
{{- if $showNumber -}}
|
||||||
{{- $ellipsed = false -}}
|
{{- $ellipsed = false -}}
|
||||||
|
|
|
@ -14,6 +14,7 @@
|
||||||
{{- range $pag.Pagers -}}
|
{{- range $pag.Pagers -}}
|
||||||
{{- $right := sub .TotalPages .PageNumber -}}
|
{{- $right := sub .TotalPages .PageNumber -}}
|
||||||
{{- $showNumber := or (le .PageNumber 3) (eq $right 0) -}}
|
{{- $showNumber := or (le .PageNumber 3) (eq $right 0) -}}
|
||||||
|
{{- $showNumber := or $showNumber (le .TotalPages 5) -}}{{/* Issue #7523 */}}
|
||||||
{{- $showNumber := or $showNumber (and (gt .PageNumber (sub $pag.PageNumber 2)) (lt .PageNumber (add $pag.PageNumber 2))) -}}
|
{{- $showNumber := or $showNumber (and (gt .PageNumber (sub $pag.PageNumber 2)) (lt .PageNumber (add $pag.PageNumber 2))) -}}
|
||||||
{{- if $showNumber -}}
|
{{- if $showNumber -}}
|
||||||
{{- $ellipsed = false -}}
|
{{- $ellipsed = false -}}
|
||||||
|
|
Loading…
Reference in a new issue