aboutsummaryrefslogtreecommitdiff
path: root/layouts/partials/pagination.html
diff options
context:
space:
mode:
authorJulien Dessaux2021-08-16 12:35:32 +0200
committerJulien Dessaux2021-08-16 12:35:32 +0200
commit78a6f5505d585fae4d32ae53304f7a1981263f4b (patch)
treef06b13877272ee11f6e6b4e115263326da4200f2 /layouts/partials/pagination.html
parentFix w3c css validator errors and updated fonts (diff)
downloadwww-78a6f5505d585fae4d32ae53304f7a1981263f4b.tar.gz
www-78a6f5505d585fae4d32ae53304f7a1981263f4b.tar.bz2
www-78a6f5505d585fae4d32ae53304f7a1981263f4b.zip
Switched to a solarized color scheme
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 }}