aboutsummaryrefslogtreecommitdiff
path: root/generators/hugo/themes
diff options
context:
space:
mode:
authorThedro Neely <thedroneely@gmail.com>2019-08-23 23:47:01 -0400
committerThedro Neely <thedroneely@gmail.com>2019-08-23 23:47:01 -0400
commit8d25b63d8051aea5b9ee231e67edd9c55d1c04d3 (patch)
tree4cead863fe2a596bc89f1cf4eb04aa25b7d709db /generators/hugo/themes
parentb52ee709f18020e00339dd1b4c5d765dfde775d6 (diff)
downloadthedroneely.com-8d25b63d8051aea5b9ee231e67edd9c55d1c04d3.tar.gz
thedroneely.com-8d25b63d8051aea5b9ee231e67edd9c55d1c04d3.tar.bz2
thedroneely.com-8d25b63d8051aea5b9ee231e67edd9c55d1c04d3.zip
hugo/layouts/partials/pagination: Fix disabled check on next button
Diffstat (limited to 'generators/hugo/themes')
-rw-r--r--generators/hugo/themes/tdro/layouts/partials/pagination.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/generators/hugo/themes/tdro/layouts/partials/pagination.html b/generators/hugo/themes/tdro/layouts/partials/pagination.html
index 6970ff8..37000de 100644
--- a/generators/hugo/themes/tdro/layouts/partials/pagination.html
+++ b/generators/hugo/themes/tdro/layouts/partials/pagination.html
@@ -13,7 +13,7 @@
</a>
<a {{ if not (le (int $MyPaginator) $HugoPaginator.PageNumber) }}{{ if $HugoPaginator.HasNext }} href="{{ $HugoPaginator.Next.URL }}" {{ end }}{{ end }}
- class="pagination-next {{ if not $HugoPaginator.HasPrev }}disabled{{ end }}"
+ class="pagination-next {{ if le (int $MyPaginator) $HugoPaginator.PageNumber }}disabled{{ end }}"
aria-label="Next page" {{ if le (int $MyPaginator) $HugoPaginator.PageNumber }}aria-hidden="true"{{ end }}>
Next
</a>