aboutsummaryrefslogtreecommitdiff
path: root/layouts/partials/pagination.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/pagination.html')
-rw-r--r--layouts/partials/pagination.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/partials/pagination.html b/layouts/partials/pagination.html
index 7220408..e2724ec 100644
--- a/layouts/partials/pagination.html
+++ b/layouts/partials/pagination.html
@@ -2,7 +2,7 @@
{{- if gt $pag.TotalPages 1 -}}
<ul class="pagination">
{{ with $pag.First -}}
- <li{{ if not $pag.HasPrev }} class="pagination-disabled"{{ end }}>
+ <li {{ if $pag.HasPrev }}class="pagination-enabled"{{ else }}class="pagination-disabled"{{ end }}>
<a {{ if $pag.HasPrev }}href="{{ .URL }}"{{ end }} aria-label="First"><span aria-hidden="true">&laquo;</span></a>
</li>
{{ end -}}
@@ -12,7 +12,7 @@
</li>
{{- end }}
{{- with $pag.Last }}
- <li{{ if not $pag.HasNext }} class="pagination-disabled"{{ end }}>
+ <li {{ if $pag.HasNext }}class="pagination-enabled"{{ else }}class="pagination-disabled"{{ end }}>
<a {{ if $pag.HasNext }}href="{{ .URL }}"{{ end }} aria-label="Last"><span aria-hidden="true">&raquo;</span></a>
</li>
{{- end }}