Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/yihui/hugo-xmag.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/header.html')
-rw-r--r--layouts/partials/header.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index 87263fc..7b4a004 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -32,7 +32,7 @@
<span>{{ $.Scratch.Get "Title" }}</span>
<span>{{ now.Format "2006/01/02" }}</span>
{{ $paginator := .Paginate (where .Data.Pages "Section" "!=" "") }}
- {{ with $paginator }}<span>{{ .PageNumber }} / {{ .TotalPages }}</span>{{ end }}
+ <span>{{ with $paginator }}{{ if .TotalPages }}{{ .PageNumber }} / {{ .TotalPages }}{{ end }}{{ end }}</span>
{{ end }}
</div>
</nav>