summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--layouts/partials/blog_index.html8
1 files changed, 6 insertions, 2 deletions
diff --git a/layouts/partials/blog_index.html b/layouts/partials/blog_index.html
index 7635e89..a02a922 100644
--- a/layouts/partials/blog_index.html
+++ b/layouts/partials/blog_index.html
@@ -6,11 +6,15 @@
<nav class="blog-pages-list">
Pages:
{{ if $paginator.HasPrev }}
- [ <a href="{{ $paginator.First.URL}}">previous</a> ]
+ [ <a href="{{ $paginator.Prev.URL}}">previous</a> ]
{{ end }}
{{ range seq $paginator.TotalPages }}
- <a href="/blog/page/{{ . }}/">{{ . }}</a>
+ {{ if eq . $paginator.PageNumber }}
+ <span class="current"> {{. }} </span>
+ {{ else }}
+ <a href="/blog/page/{{ . }}/">{{ . }}</a>
+ {{ end }}
{{ end }}
{{ if $paginator.HasNext }}