mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-12 20:13:59 +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 gt $page.Paginator.TotalPages 1 }}
|
||||
<ul class="pagination pagination-{{ $format }}">
|
||||
{{- partial (printf "inline/pagination/%s" $format) $page }}
|
||||
{{- partial (printf "inline/pagination/%s.html" $format) $page }}
|
||||
</ul>
|
||||
{{- end }}
|
||||
{{- else }}
|
||||
@@ -29,7 +29,7 @@
|
||||
|
||||
{{/* Format: default
|
||||
{{/* --------------------------------------------------------------------- */}}
|
||||
{{- define "partials/inline/pagination/default" }}
|
||||
{{- define "_partials/inline/pagination/default.html" }}
|
||||
{{- with .Paginator }}
|
||||
{{- $currentPageNumber := .PageNumber }}
|
||||
|
||||
@@ -100,7 +100,7 @@
|
||||
|
||||
{{/* Format: terse
|
||||
{{/* --------------------------------------------------------------------- */}}
|
||||
{{- define "partials/inline/pagination/terse" }}
|
||||
{{- define "_partials/inline/pagination/terse.html" }}
|
||||
{{- with .Paginator }}
|
||||
{{- $currentPageNumber := .PageNumber }}
|
||||
|
||||
|
Reference in New Issue
Block a user