mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-15 20:44:01 +02:00
tpl/tplimpl: Update embedded pagination template
This commit is contained in:
committed by
Bjørn Erik Pedersen
parent
83cfdd78ca
commit
1e00842489
@@ -20,7 +20,7 @@
|
|||||||
{{- if in $validFormats $format }}
|
{{- if in $validFormats $format }}
|
||||||
{{- if gt $page.Paginator.TotalPages 1 }}
|
{{- if gt $page.Paginator.TotalPages 1 }}
|
||||||
<ul class="pagination pagination-{{ $format }}">
|
<ul class="pagination pagination-{{ $format }}">
|
||||||
{{- partial (printf "inline/pagination/%s" $format) $page }}
|
{{- partial (printf "inline/pagination/%s.html" $format) $page }}
|
||||||
</ul>
|
</ul>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- else }}
|
{{- else }}
|
||||||
@@ -29,7 +29,7 @@
|
|||||||
|
|
||||||
{{/* Format: default
|
{{/* Format: default
|
||||||
{{/* --------------------------------------------------------------------- */}}
|
{{/* --------------------------------------------------------------------- */}}
|
||||||
{{- define "partials/inline/pagination/default" }}
|
{{- define "_partials/inline/pagination/default.html" }}
|
||||||
{{- with .Paginator }}
|
{{- with .Paginator }}
|
||||||
{{- $currentPageNumber := .PageNumber }}
|
{{- $currentPageNumber := .PageNumber }}
|
||||||
|
|
||||||
@@ -100,7 +100,7 @@
|
|||||||
|
|
||||||
{{/* Format: terse
|
{{/* Format: terse
|
||||||
{{/* --------------------------------------------------------------------- */}}
|
{{/* --------------------------------------------------------------------- */}}
|
||||||
{{- define "partials/inline/pagination/terse" }}
|
{{- define "_partials/inline/pagination/terse.html" }}
|
||||||
{{- with .Paginator }}
|
{{- with .Paginator }}
|
||||||
{{- $currentPageNumber := .PageNumber }}
|
{{- $currentPageNumber := .PageNumber }}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user